Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!isi.edu!sondeen From: sondeen@isi.edu (Jeff Sondeen) Newsgroups: comp.lang.perl Subject: Bug with regular expressions? (ver 3 patch 44) Message-ID: <16981@venera.isi.edu> Date: 4 Mar 91 17:02:54 GMT Reply-To: sondeen@venera.isi.edu (Jeff Sondeen) Organization: Information Sciences Institute, Univ. of So. California Lines: 16 The following works without the caret (^) specifying beginning of line; with the caret, it doesn't match the input (which starts in column 1): program: perl -ne 'if (/^\w:/) { print; }' on input: nope: gives result: expected result: nope: hypothesis: the caret(^) specifying beginning of line is messing up the regular expression matching version: This is perl, version 3.0 ... Patch level: 44 -- /jeff sondeen@isi.edu "engineers were discouraged from bringing problems to the attention of their supervisors" -- John Magnus, final report, Hubble Space Telescope investigation