hello,
I have a field that contains a text string that I need to match with wildcards or a Regular Expression.
The part I'm having trouble with is that the database field contains the wildcards and the input string has the full text.
For instance I could have the following SQL
Select *
from TableOddIds
where TableOddIds.IDmatch like "ABCD1234ABCD"
Where the string "ABCD1234ABCD" could be from various sources including User Input.
I would want that to match an IDmatch value of
"ABCD%ABCD"
The actual values in the DB now are more like
"ABCD CD" but I could fill in the blank spaces to make it easier (if that would make it easier)
Any ideas?
Thanks.
I have a field that contains a text string that I need to match with wildcards or a Regular Expression.
The part I'm having trouble with is that the database field contains the wildcards and the input string has the full text.
For instance I could have the following SQL
Select *
from TableOddIds
where TableOddIds.IDmatch like "ABCD1234ABCD"
Where the string "ABCD1234ABCD" could be from various sources including User Input.
I would want that to match an IDmatch value of
"ABCD%ABCD"
The actual values in the DB now are more like
"ABCD CD" but I could fill in the blank spaces to make it easier (if that would make it easier)
Any ideas?
Thanks.