in reply to Abbreviation regex?
You could just reverse your regex with the match variable:
if ( "abbreviation" =~ m/^$str/ ) { #...
Still a regex solution, just not a refactoring of that regex solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Abbreviation regex?
by Tanktalus (Canon) on Jan 16, 2006 at 17:55 UTC | |
by ikegami (Patriarch) on Jan 16, 2006 at 18:07 UTC | |
by fishbot_v2 (Chaplain) on Jan 16, 2006 at 18:02 UTC |