in reply to Re: Not matching a single quote (apostrophe!)
in thread Not matching a single quote (apostrophe!)

"^" matches the start of the *string*. Sounds like you want to match the start of the *line*. Use the /m modifier to make "^" match the start of the line. Your question had nothing to do with single quotes.

perlre

  • Comment on Re^2: Not matching a single quote (apostrophe!)

Replies are listed 'Best First'.
Re^3: Not matching a single quote (apostrophe!)
by puddleglum (Initiate) on Nov 18, 2009 at 00:07 UTC

    quite right! obvious when you look at it..