in reply to regex corrupting separate regex
A better approach is to compare your two name strings using eq and lc instead of a regex:
For your version comparison, you might consider using index instead of a regex. It is not clear what you are trying to do (why did you initialize the version to an empty string?).$match_name = (lc($cache_name) eq lc($task_name$)) ? "match" : "no mat +ch";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex corrupting separate regex
by boxofrox (Initiate) on Feb 13, 2010 at 01:16 UTC |