in reply to
Regex help
You want the first square brackets. So tell Perl:
/^[^[]*(\[[^]]+])/
[download]
Comment on
Re: Regex help
Download
Code
In Section
Seekers of Perl Wisdom