in reply to Re^3: Creating a whitelist
in thread Creating a whitelist
"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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Creating a whitelist
by htmanning (Friar) on Jun 17, 2016 at 00:08 UTC | |
by htmanning (Friar) on Jun 17, 2016 at 01:00 UTC | |
by haukex (Archbishop) on Jun 17, 2016 at 16:18 UTC |