$s="a (b) c"; $_="a b c"; if ( /$s/ ) { # Das eingefangene der Klammer steht nun in $1 print "Found it: $1!\n"; } else { print "Not found\n"; }