I need to search a Text Box after user input to see if there are any Occurrences of a particular abbreviation.
As an example, I want to see if the user has input one of the following:-
".AB ", "AB." , " AB ", "/AB", ",AB"
What is the cleanest way of doing this please?
An easy way is to use Regular Expressions:
Choose a regex that matches the strings you want to detect.