Hi,
0.9.3 doesn't work for the code you used, but it did using the latest checkout.
On 6/4/06, Simon Wacker <[EMAIL PROTECTED]> wrote:
> The regular expression samples in the Java doc should work. There are
> only a few little API differences, as you already noticed. I used the
> following test code which works for me (using the latest version 0.9.3):
>
> import org.as2lib.regexp.Pattern;
> import org.as2lib.regexp.Matcher;
>
> var p:Pattern = new Pattern("a*b");
> var m:Matcher = new Matcher(p, "aaaab"); // or p.getMatcher("aaab");
> trace(m.matches()); // traces true
>
> I nevertheless suggest you to check-out the latest sources from the SVN
> repository (http://sourceforge.net/svn/?group_id=94206 module
> trunk/main) because we made some bugfixes since release 0.9.3.
>
>
> Greetings,
> Simon
>
> [EMAIL PROTECTED] wrote:
>
> >>As2lib Regular Expression Framework
> >>
> >>
> >
> >P.S. I tried looking at Java examples but they mostly start with
> >something like:
> >
> >Pattern p = Pattern.compile("a*b");
> >
> >Pattern.compile is private in as2lib... So I tried:
> >
> >p:Pattern = new Pattern("a*b");
> >m:Matcher = new Matcher(p, "aaab");
> >trace(String(m.matches));
> >
> >But it always returns 'false'.
> >
> >How should I be using this? Any pointers?
> >
> >
> >
> >
> >_______________________________________________
> >osflash mailing list
> >[email protected]
> >http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
> >
> >
> >
>
> --
> Simon Wacker
> www.simonwacker.com
> www.as2lib.org
> www.hq-heilbronn.de
> www.flik-flak.de
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
--
Ray Chuan
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org