[SVN] RegExp List Compression
Ciarán Walsh
ciawal at gmail.com
Fri May 16 19:36:40 UTC 2008
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))
More information about the textmate-dev
mailing list