develooper Front page | perl.beginners | Postings from October 2008

Regexp: Correct braces

From:
Vyacheslav Karamov
Date:
October 3, 2008 01:52
Subject:
Regexp: Correct braces
Hi All!

I need to capture something in braces using regular expressions.
But I don't need to capture wrong data:

[Some text] - correct
(Some text) - also correct
[Some text) - wrong
(Some text] - also wrong



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About