[Gambas-devel] libnodave

Rob sourceforge-raindog2 at ...19...
Tue Feb 22 15:54:08 CET 2005


On Tuesday 22 February 2005 05:51, Benoit Minisini wrote:
> STATIC PUBLIC FUNCTION match(subject AS String, pattern AS
> String) AS Boolean
> Can you add a class named "Matches" with a static "_call"
> method that implements the same behaviour ?
> This way, for simple uses of RegExp, user will only have to
> call:
> IF Matches("MyString", "MyPattern") THEN ...
> What do you think about that ?

Sure, I had that in an earlier unreleased revision of the 
component.... I'll dig out my code and clean it up.

Did you mean Regexp.Matches("MyString", "MyPattern") or is there 
some way I can use interpreter hooks to export the Matches 
symbol so it can be used without specifying the Regexp class?

Rob






More information about the Devel mailing list