Smart groups and regex
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.