regex - Delete portion of characters from each line in notepad++ -
i trying delete range of characters each line in notepad
input:
- 0 0000 stringxx1 describestring1
- 1 0001 stringxx2 describestring2.
output:
- stringxx1
- stringxx2
i've gone through this
i select string spaces not sure how proceed further. note words starts string can of varying length.
\sstring.*?\s
any appreciated.
you may use
^.*?(string\s*).* and replace $1.
explanation:
^- start of string.*?- 0 or more characters other newline few possible before....(string\s*)- (group 1) literal character sequencestringfollowed 0 or more characters other whitespace (\s*).*- 0 or more characters other newline (up end of line)

Comments
Post a Comment