"National Bank" does not match "First, National, Bank" because of the comma. Try stripping out the commas:
That still wouldn't match, because "National Bank" !~ /First National Bank/i;. Reversing the match would work in that instance, eg "First National Bank" =~ /National Bank/i;
I'm curious as to why OP doesn't provide a list of allowed values that users can select from?
In reply to Re^4: Creating a whitelist
by SimonPratt
in thread Creating a whitelist
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |