Page 1 of 1
Regular expression in searching file content.
Posted: 19.12.2018, 08:55
by randum
It does not work with russians letters.
Re: Regular expression in searching file content.
Posted: 19.12.2018, 12:25
by Timon
'Тест' 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
Re: Regular expression in searching file content.
Posted: 19.12.2018, 21:23
by randum
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.
Code: Select all
Тест ещё текст
И ещё какой-то текст
https://regex101.com
Re: Regular expression in searching file content.
Posted: 20.12.2018, 09:16
by Timon
Re: Regular expression in searching file content.
Posted: 20.12.2018, 10:19
by randum
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.
Re: Regular expression in searching file content.
Posted: 20.12.2018, 16:35
by Marek
It does not work for russians text.
Could you please try the new release 790.
Re: Regular expression in searching file content.
Posted: 20.12.2018, 17:37
by randum
It defently works, thank you Marek.)) I have no idea why I didn't try this version before.
Re: Regular expression in searching file content.
Posted: 20.12.2018, 18:01
by Marek
Just now released
.
Re: Regular expression in searching file content.
Posted: 05.02.2019, 10:21
by randum
I have the same problem with searching files named by russian letters using regular expression.
Should I create new topic?