Hi, Experts,
What is the exact difference between ^ & \A?
According to perl books, ^ matches the beginning of a line and \A matches the beginning of a string. Wouldn't they mean the same?
Could someone show me the difference through examples?
In addition, how to use regexp to change the first char of a string into upper case? I know how to do it using substr. But I'd like to know how to do it using regexp.
Many thanks.
What is the exact difference between ^ & \A?
According to perl books, ^ matches the beginning of a line and \A matches the beginning of a string. Wouldn't they mean the same?
Could someone show me the difference through examples?
In addition, how to use regexp to change the first char of a string into upper case? I know how to do it using substr. But I'd like to know how to do it using regexp.
Many thanks.