View previous topic :: View next topic |
Author |
Message |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Wed Oct 22, 2008 5:46 am Post subject: Are regexp working in minid2 yet? |
|
|
Are regexp working in minid2 yet? Trying to use it I get this:
Code: | >>> global reg = regexp.compile(`package\s(org)\.eclipse\.swt(.*);\s`)
Error: stdin(1): No implementation of method 'compile' or opMethod for type 'namespace'
Traceback: stdin(1) |
|
|
Back to top |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Wed Oct 22, 2008 6:18 am Post subject: |
|
|
Ah, the API has been changed a bit, I just haven't updated the docs. You now create regexes like any other object:
Code: |
>>> global reg = regexp.Regexp.clone(`package\s(org)\.eclipse\.swt(.*);\s`)
>>>
|
Also, all the free functions in regexp have been removed in favor of creating and using a Regexp object (partly because compiling regexes in Tango is so unbearably slow).
I'll update the docs. Thanks for reminding me |
|
Back to top |
|
|
|