Hi
This is my first stab at regular expressions. Can anyone tell me what I'm doing wrong. I'm trying to retrieve the first 4 consecutive digits after the word 'admitted'. There is a varying number of letters and digits after the word 'admitted', so I used [:alnum:]* but I'm only interested in the first 4 consecutive digits I find.
So I wrote:
SELECT candidates.candID, candFName, candLName, candRefNo, cvQual FROM candidates INNER JOIN cvs ON candidates.candID = cvs.candID
WHERE cvQual REGEXP 'Admitted[:space:][:alnum:]*[:digit:]{4}'
The query does not return an error but nor did it return any records!
Thanks for any pointers...
Jake