• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Regular Expressions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regular Expressions?


  • Subject: Re: Regular Expressions?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 6 Jun 2008 14:29:39 -0700


On 6 Jun '08, at 8:13 AM, glenn andreas 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...

JavaScriptCore is just using PCRE*. That basically supports Unicode, but I have had problems in the past with non-Roman text in JS regular expressions (particularly with word breaks in Japanese text). I think ICU is a better bet.


—Jens

* and until a month or two ago it was a very ancient version of PCRE, with prominent security holes; that's how that guy won a MacBook Pro in the "Pwn2Own" contest.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Regular Expressions? (From: "Cemil Browne" <email@hidden>)
 >Re: Regular Expressions? (From: Jason Stephenson <email@hidden>)
 >Re: Regular Expressions? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Using NSSortDescriptor to reverse sort an NSArray containing NSString objects
  • Next by Date: Re: Regular Expressions?
  • Previous by thread: Re: Regular Expressions?
  • Next by thread: Re: Regular Expressions?
  • Index(es):
    • Date
    • Thread