in reply to Re: Care to explain s/\A\s*//?
in thread Help me write a good reg-exp for this text
The difference between /\Z/, /\z/ and /$/ is far more significant.
Well, I do agree with you on the RTFM part... it's all in there. Looking there should become a more natural response, than asking here.
I'd prefer
anyway, as this wouldn't do an empty substitution if the string doesn't start with whitespace.s/^\s+//;
|
|---|