On 16 May 2008, at 20:22, Simon Gregory wrote:

In a few of the language definitions there are lists of matches which look like this:

(G(erd Knops|a(vin Kistner|rrett J. Woodworth)|ra(nt Hollingworth| eme Rocher))|R(yan McCuaig|ich Barton|o(ss Harmes|ger Braunstein| b(ert Rainthorpe| (Rix|Bevan))))

I'm imagining that it's painful to achieve these by hand, so can anyone point me to a script that does it?

$ cat | ruby /Library/Application\ Support/TextMate/Bundles/Objective- C.tmbundle/Support/list_to_regexp.rb
foobar
foobaz
qux
(qux|fooba(z|r))


_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev

Reply via email to