Regular expressions Visual Filters for Unicode characters

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Regular expressions Visual Filters for Unicode character

Post by bdeshi »

:shock:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Regular expressions Visual Filters for Unicode character

Post by Enternal »

SammaySarkar wrote::shock:
+1
:lol:

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Regular expressions Visual Filters for Unicode character

Post by Marco »

Btw, I'm currently fixing some awful mistakes, will post a definitive version tomorrow.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Regular expressions Visual Filters for Unicode character

Post by Marco »

Took me longer than I planned, but here it is. Still not 100% satisfied with the final handling of captions vs actual VF in case more options are selected, but that's a minor aspect and the whole thing works. Beware, certain filter are huge.
Attachments
Regular Expressions Visual Filters for Unicode 0.90.xys
(474.1 KiB) Downloaded 335 times
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Regular expressions Visual Filters for Unicode character

Post by Enternal »

This is pretty amazing actually. Not only that, the file size :)

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Regular expressions Visual Filters for Unicode character

Post by Marco »

:mrgreen:
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Regular expressions Visual Filters for Unicode character

Post by bdeshi »

The most amazing thing here is how Marco managed to write it without being hospitalized for severely traumatic headache. :mrgreen:
I get those just by peering inside the code. Even with one eye closed.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Regular expressions Visual Filters for Unicode character

Post by Marco »

Let's just say that it's an unusually rainy summer here, and I get bored pretty quickly :D
I have a bunch of files with Russian names and wanted a quick way to spot them. So I recalled what I did with Arabic and tried the same thing, but noticed that there are digraphs and other problematic stuff that prevent from creating an elegant and simple solution. Then I read the Holy Bible of regexes and found the \p{X} syntax - something cool to import in XY. The rest is history :D since XY regex engine has always some caveat to workaround.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Regular expressions Visual Filters for Unicode character

Post by bdeshi »

Marco wrote:Then I read the Holy Bible of regexes and found the \p{X} syntax
I got JG's RegexBuddy. At first I couldn't make the ^ or $ of the whole thing. :wink:
:P Sorry, can't resist!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Regular expressions Visual Filters for Unicode character

Post by Marco »

:D
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Regular expressions Visual Filters for Unicode character

Post by Papoulka »

At first I couldn't make ^ or $ of the whole thing.
(slightly edited for colloquial English).

An instant classic! Should take its place with the elegant "two kinds of people" binary joke. Thank you Sammay.

Garonne
Posts: 193
Joined: 21 Apr 2015 19:10
Location: Win11, 100% Scaling
Contact:

Re: Regular expressions Visual Filters for Unicode character

Post by Garonne »

SammaySarkar wrote:
Marco wrote:Then I read the Holy Bible of regexes and found the \p{X} syntax
I got JG's RegexBuddy. At first I couldn't make the ^ or $ of the whole thing. :wink:
:P Sorry, can't resist!
*grin* Have some of JG's Tools myself (RegexBuddy and RegexMagic included.)

Post Reply