Regular expression in searching file content.

Bugs and issues.
Post Reply
Message
Author
randum
Posts: 5
Joined: 19.12.2018, 08:42

Regular expression in searching file content.

#1 Post by randum » 19.12.2018, 08:55

It does not work with russians letters.
Image

Timon
Posts: 729
Joined: 13.09.2012, 08:51

Re: Regular expression in searching file content.

#2 Post by Timon » 19.12.2018, 12:25

'Тест' is not a regular expression, just uncheck 'Regular expression'

Regular expression filter:
. any character
c+ match character c one or more times
c* match character c zero or more times
c? match character c zero or one time
^ start of line
$ end of line
| or
(string){n} match string n times
(abcd) subexpression
[aei0-9] match a,e,i and 0..9
[^aei0-9] anything but a,e,i and 0..9
\w matches a-z,A-Z,0-9 and _
\W any non alphanumeric character
\d digits 0-9
\s whitespaces
\. dot
\+ plus
\* asterisk
\( left parenthesis
\) right parenthesis
(?i) ignore upper-/lowercase (default in FC)
(?-i) case-sensitive matching
\A start of string
\Z end of string

randum
Posts: 5
Joined: 19.12.2018, 08:42

Re: Regular expression in searching file content.

#3 Post by randum » 19.12.2018, 21:23

Thank you for your answer.

I tested this on online site dedicated to check regular expressions and it's working.
You have to understand that I used the word just for testing, actually I am going to use regular expressions with all oportunities tha they can give, but result wiil be the same.

I don't know what but something is broken in free commander in this part. You can check on the site that my expression can work.
Image

Code: Select all

Тест ещё текст
И ещё какой-то текст
https://regex101.com


randum
Posts: 5
Joined: 19.12.2018, 08:42

Re: Regular expression in searching file content.

#5 Post by randum » 20.12.2018, 10:19

Timon, I read this and did it before.
I can`t understand what do you try to explain me.

I made simple example with searching among two files with russian and english text.
On the picture we can see that with English version all is working quite normal.

Why can`t free commander do just the same with Russian text?
And we have Regular expression pattern error with Russian version only.

Image

Marek
Author
Author
Posts: 3974
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Regular expression in searching file content.

#6 Post by Marek » 20.12.2018, 16:35

It does not work for russians text.
Could you please try the new release 790.

randum
Posts: 5
Joined: 19.12.2018, 08:42

Re: Regular expression in searching file content.

#7 Post by randum » 20.12.2018, 17:37

It defently works, thank you Marek.)) I have no idea why I didn't try this version before.

Marek
Author
Author
Posts: 3974
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Regular expression in searching file content.

#8 Post by Marek » 20.12.2018, 18:01

Just now released :).

randum
Posts: 5
Joined: 19.12.2018, 08:42

Re: Regular expression in searching file content.

#9 Post by randum » 05.02.2019, 10:21

I have the same problem with searching files named by russian letters using regular expression.

Should I create new topic?

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests