Im trying to understand what the ^ and $ characters do when used in
/^abc/ =~ “!abc”
“You can use an anchor to match the beginning of a string”
/abc$/ =~ “abc!”
“You can use an anchor to match the end of a string”
Why do these two statements return nil and how does the “anchor” work
Can someone please clarify?
Does this mean that the regex is checking before the C\d+ ?
if @refdes =~ /^C\d+/
Thanks in advance.