H
Hunt Jon
Hi
I'm trying to find good use examples to show a difference
between ^ and \A in Ruby regular expressions.
\A is for beginning of a string
^ beginning of a line or string
As a regular expression runs one line by line (if I'm correct),
I think both are the same.
I'm a little confused with when to use which.
Jon
I'm trying to find good use examples to show a difference
between ^ and \A in Ruby regular expressions.
\A is for beginning of a string
^ beginning of a line or string
As a regular expression runs one line by line (if I'm correct),
I think both are the same.
I'm a little confused with when to use which.
Jon