Regular Expression Test

Everything else that doesn't fall into one of the other PB categories.
AZJIO
Addict
Addict
Posts: 2171
Joined: Sun May 14, 2017 1:48 am

Regular Expression Test

Post by AZJIO »

Download: yandex.ru upload.ee (Windows, Linux)

screenshot on Linux
Image
screenshot2 on Linux

Updates (v0.6)
Added "Range Test" button. Used to view which characters will be captured by a range.
screenshot

Added alternating bracket highlighting.
Fix to prevent continuous signal about the need to highlight the regular expression code.

2024.05.19 (v0.6.3)
Added external language file Lang.txt in the configs folder
Added parameter ForceLangSel = 2, which forcibly enables the 1st or 2nd language in the program.
Improved change in gadget size coordinates when changing the window (useful on Linux).
Fixed path to template on Linux.
Last edited by AZJIO on Tue Feb 25, 2025 10:57 pm, edited 24 times in total.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Regular Expression Test

Post by Kwai chang caine »

Run here 8) , but too much complex for me :shock:
I know nothing to the REGEX :oops:
But thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
AZJIO
Addict
Addict
Posts: 2171
Joined: Sun May 14, 2017 1:48 am

Re: Regular Expression Test

Post by AZJIO »

Updated
Added window resizing and saving.
Added a checkbox to support groups in the replacement box.
Added output of regular expression execution time. Works only on Windows.


I want to add templates so that I can get the finished code for my program based on the input data.
Cyllceaux
Enthusiast
Enthusiast
Posts: 511
Joined: Mon Jun 23, 2014 1:18 pm

Re: Regular Expression Test

Post by Cyllceaux »

Nice :), but I had to change the line 153 to

Code: Select all

DeclareDLL SciNotification(Gadget, *scinotify.SCNotification)
AZJIO
Addict
Addict
Posts: 2171
Joined: Sun May 14, 2017 1:48 am

Re: Regular Expression Test

Post by AZJIO »

Update
Added 2 buttons "Add" and "Remove" to populate libraries with regular expressions. (ru, en, Windows, Linux)
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Regular Expression Test

Post by Kwai chang caine »

Thanks for sharing all your works 8)
ImageThe happiness is a road...
Not a destination
AZJIO
Addict
Addict
Posts: 2171
Joined: Sun May 14, 2017 1:48 am

Re: Regular Expression Test

Post by AZJIO »

Added command line.

As a tool in PureBasic, you can add the command line:
-l:PureBasic -nu -i:4 "%TEMPFILE"

-l:PureBasic - library selection.
-nu - do not update the processed text so that it does not change when other items are clicked.
-i:4 - selection of the 4th item, counting from 0. The parameter must be after the -l key: otherwise it will work when the library is not open.
"%TEMPFILE" - quoted path of file to be opened.
Fred
Administrator
Administrator
Posts: 18176
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Regular Expression Test

Post by Fred »

Nice !
AZJIO
Addict
Addict
Posts: 2171
Joined: Sun May 14, 2017 1:48 am

Re: Regular Expression Test

Post by AZJIO »

Updated
Increased data output speed if several thousand items are found. The CopyMemoryString() function is used.
Post Reply