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

Discussion, questions and support.
Post Reply
Message
Author
Dave F
Posts: 17
Joined: 04.12.2016, 18:14

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

#1 Post by Dave F » 29.01.2022, 23:11

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
FreeCommander XE 2023 Build 880 32-bit public, Windows 10.

zaphod7
Posts: 4
Joined: 26.01.2022, 11:00

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

#2 Post by zaphod7 » 04.02.2022, 10:49

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests