I am writing a search module where i need to restrict user from entering search string start with wildcard using custom validator like
*apple, *?apple, ?apple, **apple, ??apple etc
Any help would be greatly appreciated.
Thanks
I am writing a search module where i need to restrict user from entering search string start with wildcard using custom validator like
*apple, *?apple, ?apple, **apple, ??apple etc
Any help would be greatly appreciated.
Thanks
What about using a validation expression like
^[a-zA-Z].*$
i.e. allowing only a letter as first character, or
^[^\*\?].*$
i.e. anything that is not a * or ? as first character.