I'm having trouble getting this to work with the $1 form - it's simply not matching anything the moment I make that change.
The \s is simply because each line of the dictionary file contains a word followed by whitespace. Checking for the space stops me from printing out "TESTING" when I only want "TEST" :-)
In reply to Re^2: Matching Character Patterns With Backreferences
by Anonymous Monk
in thread Matching Character Patterns With Backreferences
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |