Regular expression in file search does not work as expected

Discussion, questions and support.
Post Reply
Message
Author
zaphod7
Posts: 4
Joined: 26.01.2022, 11:00

Regular expression in file search does not work as expected

#1 Post by zaphod7 » 26.01.2022, 11:04

I have problems with file search using regular expressions.
Of course I activated the "regular expression" checkbox.

1. regular expression in filename
for example search ^abc to find all files starting with abc => works as expected!

2. search for file contents
for example search for file content ^class to find all files with lines starting with class => 0 results, but I'm sure that there are files with lines that start with class.

Am I doing something wrong, or is this a bug?

cisus
Posts: 4
Joined: 18.01.2022, 21:27

Re: Regular expression in file search does not work as expected

#2 Post by cisus » 26.01.2022, 12:37

I suppose that 'class' isn't a regular expression for a FreeCommander. Try to uncheck the box and search again.

zaphod7
Posts: 4
Joined: 26.01.2022, 11:00

Re: Regular expression in file search does not work as expected

#3 Post by zaphod7 » 26.01.2022, 13:57

cisus wrote: 26.01.2022, 12:37 I suppose that 'class' isn't a regular expression for a FreeCommander. Try to uncheck the box and search again.
Sorry, but that will not help, because I need to find all files with lines that start with "class". There are too many files that contain "class" at some other position.

cisus
Posts: 4
Joined: 18.01.2022, 21:27

Re: Regular expression in file search does not work as expected

#4 Post by cisus » 26.01.2022, 15:37

Oh, sorry, I was wrong. Haven't you found another solution?

zaphod7
Posts: 4
Joined: 26.01.2022, 11:00

Re: Regular expression in file search does not work as expected

#5 Post by zaphod7 » 04.02.2022, 10:42

No solution so far.

Other regular expressions like abc.*xyz work,
but ^ and $ (for beginning/end of line) do not.

I'm using "FreeCommander XE 2022 Build 860 32-bit public".

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests