Page 1 of 1

Regex - start of line (^) only works if start of file!

Posted: 29.01.2022, 23:11
by Dave F
Hi
Regex - start of line (^) only works if start of file

Unsure what I'm misunderstanding here. Using latest FC Public.

I have a text file (Notepad++ with all characters on)
Image

This search returns empty with no error log.

Image

If I swap them so PAT is the first line the same search returns the file.
I've tried it with other files/text/length etc with the same results.

I'm using this post as confirmation the regex start of line character is a '^'
viewtopic.php?p=28771#p28771

Re: Regex - start of line (^) only works if start of file!

Posted: 04.02.2022, 10:49
by zaphod7
I can confirm this behaviour.
See also my post here: viewtopic.php?t=12597
Interesting that it works if it's the first line in a file.