
1 May
2007
1 May
'07
9:15 a.m.
Lorenzo Bettini wrote:
Hi
is there a way to specify open and closed parenthesis with a regular expression syntax? For instance, if I'd want to specify a single regular expression that matches both (foo) and [foo] and {foo}?
Probably not what you wanted, but: [(\[{]foo[)\]}] sort of does what you want, but if you want to ensure that the brackets match up, then it's down to: \[foo\]|\(foo\)|\{foo\} John.