I know that the Matcher datatype is for regular expressions, however, short of trying to understand the source code (Which would be rather hard for me; I'm horrible with Java) I haven't been able to find anywhere where it is described how they are to be used.
Is anyone able to help me out?
PS. For anyone who might be able to help but doesn't want to run to ashref, here's the (presumably) relevant functions:
Is anyone able to help me out?
PS. For anyone who might be able to help but doesn't want to run to ashref, here's the (presumably) relevant functions:
Code:
buffer append_tail( matcher, buffer )
buffer append_replacement( matcher, buffer, string )
matcher create_matcher( string, string )
boolean find( matcher )
boolean start( matcher )
boolean end( matcher )
string group( matcher )
string group( matcher, int )
int group_count( matcher )
string replace_first( matcher, string )
string replace_all( matcher, string )
matcher reset( matcher )
matcher reset( matcher, string )