Rexman

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Rexman

Post by Didelphodon »

I have written a small tool for my own needs but I think it might be also good help for others ...

The tool's called Rexman and it's aim is to help one in working with and development of regular expressions, especially in PureBasic.

Image

Just put your sample-text into the regarding area and code your regex in the upper StringGadget -> Rexman will update automatically.

Download (win32/win64/lin32/lin64): http://www.wojner.at/static/rexman.zip

Here's the changelog ...

EDIT (Version 2.0 Build 56)
* Fixed a crash at startup under very special circumstances

EDIT (Version 2.0 Build 55)
* Performance-boost when saving sessions.
* Group-views when setting group-id to -1/-2.
* Mapview for REGEX matches in Resultvisualizer
* Load sample-data from file
* Context menues

EDIT (Version 2.0 Build 54)
* Fixed crash (due to Scintilla.dll sharing) when multiple instances of RexMan where running.
* Use Scintilla for info-view
* Replace sample-data based on REGEX with string and copy result to clipboard
* REGEX groups (since PB 5.30) are now supported -> Use the according spin-gadget to switch between 0 (= no group) and the desired group-id.

EDIT (Version 2.0 Build 53)
* Statusbar displaying Rexman's state
* Explanation strings for special characters
* Linux should detect regex changes now
* Change of sample data now refreshes results
* Other minor bugfixes

EDIT (Version 2.0 Build 51)
* Token viewer can show original Regex tokens by opt-in via checkbox
* Regex input control is now Scintilla based
* Regex input control shows colors analogue to token viewer
* Describe special characters within custom character-class

EDIT (Version 2.0 Build 50):
* Use of Scintilla for sample/results text
* Revised save-pending and the according management
* State of the dynamic layout (Mainwindow and cheatsheet) is stored/loaded
* Linewrap state is stored/loaded
* Sample and result data scroll correlated
* Token viewer to easily understand the coded regular expression
* RexManHQ - Checks for updates and downloads the latter
* RexMan now does have an icon on Windows platforms
* Bugfixes

EDIT (Version 1.2 Build 46):
* Major bugfix: Crash on Linux
* Some minor bugfixes
* "Courier New" font for Regex

EDIT (Version 1.2 Build 44):
* Bugfixes
* Linewrapping for sample/visualization data

EDIT (Version 1.2 Build 42):
* Bugfixes

EDIT (Version 1.2 Build 38):
* Available for win32/win64/lin32/lin64
* Bugfixes
* Newly available NoCase-Mode is now supported
* Sessions can now be saved/loaded
* Regexs can now be exported/imported
* Regex-Strings can now be pasted/copied from/to the clipboard (straight ones as well as combined with chr(34))
* A full CreateRegularExpression statement can now be automatically generated
* The resultlist can now be copied to the clipboard which makes RexMan even usable as a generic tool


Have phun!

Cheers Didel
Last edited by Didelphodon on Wed Nov 15, 2017 12:04 pm, edited 18 times in total.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Nice idea - thanks.

8)
I may look like a mule, but I'm not a complete ass.
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

Nice one, I already knew of some other software like this.

Useful, thank you :)
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

luis wrote:Nice one, I already knew of some other software like this.
Would you mind giving us the link? I'm interested. :)
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

Sorry Didelphodon, didn't want to hijack your thread, but since someone is asking me...
Fluid Byte wrote: Would you mind giving us the link? I'm interested. :)
This is my favorite, it's shareware:

http://www.regexbuddy.com/



There are many others freeware floating around, look for "regex tester" or "regular expression tester" or the like!

Anyway, any regexp library has some differences compared to another, so Didelphodon program is good for us because is using (I imagine) the regexp library include with PB. So a test with his tools is more "authoritative" for us PB users :)

(Regexp buddy supports many regex variants).
Last edited by luis on Fri Apr 24, 2009 4:15 pm, edited 1 time in total.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

I asked for the link so it's my fault :P

Thanks luis!
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

luis wrote:Sorry Didelphodon, didn't want to hijack your thread, but since someone is asking me...
No problem
luis wrote:... because is using (I imagine) the regexp library include with PB ...
Correct
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Does anyone know of a simple, free program that allows me to easily create regular expressions?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

GeoTrail wrote:Does anyone know of a simple, free program that allows me to easily create regular expressions?
Yes, Purebasic! :wink:
I may look like a mule, but I'm not a complete ass.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

Rexman is back online again!

Cheers Didel.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Rexman

Post by Didelphodon »

A new version of Rexman is online.

Changes:
* Dynamic resizing of the GUI-components
* Regex cheat-sheet is now onboard - press F1 to view it
* Resultvisualizer gadget is now home-brewn using canvas-gadget - no more web-gadget
* Some bug-fixes

Cheers
Didel.
Last edited by Didelphodon on Thu Feb 21, 2013 6:52 am, edited 1 time in total.
Go, tell it on the mountains.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Rexman

Post by IceSoft »

Great tool, but I miss an OpenFileRequester for loading text files as sample data.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Rexman

Post by Didelphodon »

IceSoft wrote:Great tool, but I miss an OpenFileRequester for loading text files as sample data.
Good point - thinking about it ...
Go, tell it on the mountains.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Rexman

Post by IdeasVacuum »

Great tool, but I miss an OpenFileRequester for loading text files as sample data.
....and for loading complete examples - regex solution for sample data.

How about adding a tab with some guidance on how to build a regex?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Rexman

Post by IceSoft »

Hello Didel,

Your new version works very well on my laptop at home but it works not on my office laptop.
(I think the reason is the Regex cheat-sheet)
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply