in reply to regular expressions with commas?

If you want to accept ^Y only at the end of the string (except for an optional final newline), you need the dollar sign: $string =~ /,Y$/

Replies are listed 'Best First'.
Re^2: regular expressions with commas?
by Happy-the-monk (Canon) on Dec 10, 2005 at 11:02 UTC

    you need the dollar sign: $string =~ /,Y$/

    read it in perldoc perlre right on line 59.

    Cheers, Sören