in reply to trouble with @ in a regular expression

Works for me:
perl -E 'say q{@SRR254172.1 ILLUMINA-20A1B2_0004_FC6282EAAXX:6:1:1433: +941 length=160} =~ /^@\S+\s+ILLUMINA\S+:(\d+):(\d+):(\d+):(\d+)\s+length= +160/' 611433941
Maybe your input line contains some invisible characters somewhere?

Replies are listed 'Best First'.
Re^2: trouble with @ in a regular expression
by AnomalousMonk (Archbishop) on Mar 29, 2012 at 23:26 UTC

    I, also, see the match succeed when cut/pasting the text and regex from the OP.