Page 1 of 1

RegEx for Beginning of File

Posted: Thu Feb 14, 2019 11:50 am
by nkormanik
I'm trying to delete from the beginning of a text file to "WXYZ" several lines down.

I tried ^.*WXYZ.

Didn't work.

I really need the RegEx for beginning of the file, in TextCrawler.

Thanks!

Nicholas Kormanik

Re: RegEx for Beginning of File

Posted: Thu Feb 14, 2019 12:24 pm
by DigitalVolcano
Try checking the 'Dot matches newline' option.

Note that your current expression will match up to the last occurrence of WXYZ (if there is more than one).

Re: RegEx for Beginning of File

Posted: Fri Feb 15, 2019 12:45 am
by nkormanik
Wonderful! That worked. Terrific program. Fast help. Amazing!