Page 1 of 1
RegExp evaluators
Posted: Wed Feb 28, 2007 9:19 am
by Hroudtwolf
Hello,
I have a little wish for a further PB version again.
RegExp evaluator functions like in PHP.
A replace- and a check-function would be very cool.
Maybe in such a nomenclature.
Code: Select all
regexreplace ("15. April 2003" , "/(\d+)\. (\w+) (\d+)/i" , "${2}1,$3")
findatpos = isregex ("abcdef" , "/^def/" , StartPos, EndPos")
Best regards
Wolf
Posted: Wed Feb 28, 2007 2:47 pm
by dracflamloc
Yea I think this has been requested numerous times. I would like it too
Posted: Wed Feb 28, 2007 3:59 pm
by SCRJ
Yes, nice idea!

Posted: Wed Feb 28, 2007 4:54 pm
by dell_jockey
Posted: Wed Feb 28, 2007 5:54 pm
by WishMaster
On Linux you can do this easily via
Code: Select all
Procedure RegAus(String.s, String2.s)
If fnmatch_(@String, @String2, 0) = 0
ProcedureReturn 1
EndIf
EndProcedure
Debug RegAus("M??er", "Mayer")
Debug RegAus("M??er", "Mayer")
Debug RegAus("M??er", "Müller")
Posted: Fri Jun 15, 2007 5:21 pm
by Bonne_den_kule
A regexp lib would be very nice.
Posted: Fri Jun 15, 2007 5:25 pm
by Chrono Syndrome
Good idea.
Posted: Fri Jun 15, 2007 5:28 pm
by Flype
yes i agree, a must have !
fortunately there are many solutions to do so...
Posted: Sat Jun 16, 2007 1:17 am
by naw
Me too - this is a regular request of mine

please implement Unix style RegExp (as per awk/sed) - soooo powerful (a bit cryptic but worth learning)
Posted: Sat Jun 16, 2007 1:42 am
by JCV
yes pls.

Posted: Sat Jun 16, 2007 8:23 am
by SCRJ
Would be nice
