Thread: Reg Ex help!
View Single Post
Old 04-06-2011, 02:41 PM  
CS-Jay
Confirmed User
 
CS-Jay's Avatar
 
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
One think I am looking at here:
What I am looking for:
norther arizona

What I am getting returned, but not wanted:
north carolina

select * from testit where name rlike 'nort.*ar.*'

how can specify the "ar" is to start the word. ^ only does the start of the string right? my query:

select * from testit where name rlike 'nort.*^ar.*'

returns nothing.
__________________
I do stuff - aIm CS_Jay_D
CS-Jay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote