in reply to Why would one want in a regex a class with only a single entry?
Additionally to the comments above and not entirely perl related: I often use 1-character classes in Unix when grep-ing for processes:
ps -afe | grep '[m]yprocess'
People who don't know this trick usualy type:
ps -afe | grep 'myprocess' | grep -v grep
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why would one want in a regex a class with only a single entry?
by rudder (Scribe) on Mar 27, 2008 at 00:41 UTC |