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 sequence string followed 0 or more characters other whitespace (\s*)
  • .* - 0 or more characters other newline (up end of line)

enter image description here


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -