in reply to Re: Re: Re: Re: Another regexp question
in thread Another regexp question

Hi wolis, you have to be more specific with what you are searching for in your regular expression.

Your regular expression will look for ^bing (bing at the start), bong and bang\d\d (anywhere on the line). If you want to search for all these at the beginning of the line, you can add brackets - ( ... ) -
m/^(?:bing|bong|bang\d\d)/
Note that I also added '?:' in front of the patterns to tell Perl not to capture any matches for just a bit faster.