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";
In reply to Re: regex corrupting separate regex
by toolic
in thread regex corrupting separate regex
by boxofrox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |