RegEx for Beginning of File

Tool for Search and Replace across multiple files.
Post Reply
User avatar
nkormanik
Posts: 8
Joined: Sat May 27, 2017 12:35 pm

RegEx for Beginning of File

Post 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
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: RegEx for Beginning of File

Post 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).
User avatar
nkormanik
Posts: 8
Joined: Sat May 27, 2017 12:35 pm

Re: RegEx for Beginning of File

Post by nkormanik »

Wonderful! That worked. Terrific program. Fast help. Amazing!
Post Reply