FROM : Stephen J. Butler
DATE : Fri Jun 06 23:47:52 2008
On Fri, Jun 6, 2008 at 10:13 AM, glenn andreas <<email_removed>> wrote:
> One other possible solution is to use the JavaScriptCore and make a
> JSStringRef (which works with unichars like NSString), and use JavaScript's
> regex support - that way the results will at least have consistent indices,
> work well with non-ASCII characters, etc...
As long as we're discussing really far out solutions...
There's the Java java.util.regex package. One could write some JNI and
wrap the Java package (only two classes) although you'd have to start
up the VM.
Personally, I like some of the extensions that Java adds to the patterns.
DATE : Fri Jun 06 23:47:52 2008
On Fri, Jun 6, 2008 at 10:13 AM, glenn andreas <<email_removed>> wrote:
> One other possible solution is to use the JavaScriptCore and make a
> JSStringRef (which works with unichars like NSString), and use JavaScript's
> regex support - that way the results will at least have consistent indices,
> work well with non-ASCII characters, etc...
As long as we're discussing really far out solutions...
There's the Java java.util.regex package. One could write some JNI and
wrap the Java package (only two classes) although you'd have to start
up the VM.
Personally, I like some of the extensions that Java adds to the patterns.






Cocoa mail archive

