Page 1 of 1

Regex ^

Posted: Fri May 01, 2009 8:50 pm
by JPG
It might be me, but I can't seem to get ^ or \n etc to work in regex. Is this feature turned on?
Jon

Posted: Sat May 02, 2009 7:58 am
by grigsoft
Jon,
CompareIt always applies RegExps to single lines only, not for full text, so these matches doesn't work.

Posted: Sat May 02, 2009 10:32 am
by JPG
Oh I see. I had been using "Winmerge" and this did have the ability to do Regex search and replace on the whole file, I just assumed Compare It! was the same. No problem, thanks Igor.
Jon

Posted: Sat May 02, 2009 6:38 pm
by JPG
So will you be adding regex so that the full file can be processed, it is very useful because regex can be very powerful and changs things you did not take into account.
Jon

Posted: Sun May 03, 2009 10:12 am
by grigsoft
Yes, this is in my to-do list, but for future. Right now there is some workaround for simple cases - using rule "ignore lines between R1 and R2"

Posted: Sun May 03, 2009 11:46 am
by JPG
grigsoft wrote:Yes, this is in my to-do list, but for future. Right now there is some workaround for simple cases - using rule "ignore lines between R1 and R2"
Thank you for listening.
Jon