regex - Regular expression, get the rest of the text aswell -


i have text file, regular expression looks in file , gets things want. write new information new file, not written new file! file regex reads looks this:

"this text, contains of 53 or words file. number. 80 better number. can write more words enough. very "

what written new text file is:

"this text, contains of 53 or words file. number. 80 better number. can write more words"

i want written. ideas?

without regex using, it's impossible say.

i hazard guess though, need stick .*$ on end of capture group, in order grab rest of text on line.


Comments

Popular posts from this blog

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -