Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LIKE with wildcard where the string being matched ends with a non-digit 1

Status
Not open for further replies.

cmayo

MIS
Apr 23, 2001
159
US
How can I write a query using LIKE with a wildcard where the string being matched ends with a non-digit?

For instance, I need a match on "LIKE 'Stale Ticket #13530%'" which will match the following values:

Stale Ticket #13530
Stale Ticket #13530 | Notice 4

But not these values:

Stale Ticket #135305
Stale Ticket #1353076

In other words, "13530" should only be matched if it's not followed by another digit
 
Perfect, thanks feherke. I figured some kind of regex voodoo would do the trick, but I've never had any success trying to learn regular expressions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top