I seek your wisdom: I write this very often when parsing files line-by-line ("if this line looks like this, it's this kind of data, elsif this line looks like this, it's this other kind of data, etc.") so I was wondering if there is a shorthand for the regex /^\s*abc\s*$/, or "the only thing on this line is the letters abc with maybe some whitespace"? I know I can trim the whitespace off first, but maybe there is a way to get rid of the ^$ too?
In reply to Shorthand for /^\s*abc\s*$/ ? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |