Hey all,

Whats wrong with the following regex.
Code:
            if ($feature=~/([(NM)(NR)]\_\d+)\_(\w+\d+\,\w+\d+)/ ){
Code:
        elsif($feature=~/([(NM)(NR)]\_\d+\_\w+\d+)\;.+([(NM)(NR)]\_\d+\_\w+\d+)\;){
I get the following errors:

Backslash found where operator expected at /home/anaqvi/scripts/bowtie_to_bed-v2.pl line 39, near "NM\"
Backslash found where operator expected at /home/anaqvi/scripts/bowtie_to_bed-v2.pl line 39, near "_\"
Backslash found where operator expected at /home/anaqvi/scripts/bowtie_to_bed-v2.pl line 39, near ")\"
(Missing operator before \?)
syntax error at /home/anaqvi/scripts/bowtie_to_bed-v2.pl line 39, near "if ($feature=~/("
(Might be a runaway multi-line // string starting on line 34)