Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-01

Regular Expression Help

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Perkel

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 - 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!" ~

Reply by email