• 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
Smart groups and regex
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Smart groups and regex


  • Subject: Smart groups and regex
  • From: Steve Roy <email@hidden>
  • Date: Wed, 2 Jun 2004 14:56:26 -0400

Hi everyone,

I'm trying to set up a smart group to find all files in my project
ending with either:

Res.java
Res_fr.java
Res_de.java
Res_ja.java

For this, the pattern

.*Res(_fr|_de|_ja)?\.java

works in BBEdit but matches nothing in Xcode. I'm also puzzled by the
Implementation Files pattern, ?*\.[mcMC]. How can a regex pattern start
with a question mark, since it operates on anything that comes
beforehand? In fact, when I try it in BBEdit I get an error.

I'm aware that grep in BBEdit is a little different than regular
expressions, but I haven't found any info on what a ? at the beginning
might mean. In any case, I tried

?*Res(_fr|_de|_ja)?\.java

but it doesn't match any file either.

Is the regex in Xcode different?

Steve

--
Steve Roy <email@hidden>
Personal homepage: <http://homepage.mac.com/sroy>
Projects homepage: <http://www.roydesign.net>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Smart groups and regex
      • From: Martin Häcker <email@hidden>
  • Prev by Date: Re: Annoying behavior of single-file Find/Replace dialog
  • Next by Date: Re: very sluggish editing
  • Previous by thread: Re: External CVS
  • Next by thread: Re: Smart groups and regex
  • Index(es):
    • Date
    • Thread