[Implemented] big request : regular expressions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dr. Dri
Enthusiast
Enthusiast
Posts: 243
Joined: Sat Aug 23, 2003 6:45 pm

[Implemented] big request : regular expressions

Post by Dr. Dri »

a regex lib would be a powerful feature of purebasic !

Dri
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

This has been asked a lot of time. A forum search on "regular expressions" returned eleven entries....

For now, you could try and use a library like http://www.pcre.org/
PCRE is a library that offers PERL 5 compatible regular expression evaluation. The library is free for any use - even commercial - so it might well be a basis for implementing a PureBasic RegEx library...
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

FloHimself has write 2 PB libs for regex, find it in purearea.net
ARGENTINA WORLD CHAMPION
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

of course I was aware of the two regex libs that FloHimself published some years back. I did't seem to be able to locate them though.
Searching on purearea.net (both in the archive and the rest of the site) I drew a blank. The archive 2.0 on my laptop didn't have them either. Florian's old website (the one mentioned in his profile on the German board) isn't up anymore, so that's why I gave a link to the pcre site.

If anyone can re-post the source of those two regex libraries, I'd be very grateful!
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

dell_jockey wrote:of course I was aware of the two regex libs that FloHimself published some years back. I did't seem to be able to locate them though.

http://purearea.net/pb/english/userlibs.php
-> http://purearea.net/pb/download/userlibs/PBRegExp.zip
-> http://purearea.net/pb/download/userlibs/PBRegExpEx.zip
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

Thanks Flo! Danke schön! I searched for 'PBRegEx', not 'RegEx', silly me...
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
Post Reply