• 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: find regular expressions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find regular expressions


  • Subject: Re: find regular expressions
  • From: Paul Russell <email@hidden>
  • Date: Sat, 1 Nov 2008 06:06:14 -0700

On 1 Nov 2008, at 04:52, Tom Worster wrote:

concerning the xcode text editor's find feature, the xcode user guide refers
to ICU's Regular Expressions documentation at
http://www.icu-project.org/userguide/regexp.html


so i'm surprised with how look-behind assertions are working. here's some
things i tried in xcode 3.1. the regexp i tried is the bit before the -- and
my comment.


base -- matches all your base, i mean: all instances of base.
base(?<!data) -- matches all your base including database!
base(?<=data) -- matches nothing, not even your database!


I think you have the lookbehind assertions in the wrong part of your expression - you probably want
(?<=data)base or (?<!data)base in the above examples ?


Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: find regular expressions
      • From: Tom Worster <email@hidden>
References: 
 >find regular expressions (From: Tom Worster <email@hidden>)

  • Prev by Date: find regular expressions
  • Next by Date: Re: Xcode question regarding cleaning
  • Previous by thread: find regular expressions
  • Next by thread: Re: find regular expressions
  • Index(es):
    • Date
    • Thread