[fpc-pascal] Regular Expression Help

Marc Perkel marc at perkel.com
Mon Jan 31 16:11:36 CET 2005


I'm new to free pascal and there's no docs on the regular expressions 
stuff. So - can someone write 2 functions for me to ge me started?

function RegexMatch (St : Ansistring; regex : Ansistring) : boolean;

function RegexSubstitute (St : AnsiString; regex : AnsiString, newRegex 
: AnsiString) : String;

Something equivelent to Perl's 's/regex/newRegex/g'

-- 
Marc Perkel - marc at perkel.com

Spam Filter: http://www.junkemailfilter.com
    My Blog: http://marc.perkel.com
My Religion: http://www.churchofreality.org
~ "If it's real - we believe in it!" ~






More information about the fpc-pascal mailing list