Regular Expression

VIM

Delete All Lines Pattern

    :g/<pattern>/d 

Copy all lines

    :g/<pattern>/t$ 

MyWiki: RegularExpression (last edited 2009-09-06 02:49:27 by localhost)