1

Is it possible to get the (first?) match of a regex and output it within a select? It looks like the REGEXP function only return whether there has been a match or not. I want to be able to extract information out of a varchar column without having to use complex SUBSTRING-LOCATION nestings.

Any ideas?

Michael Eakins
  • 4,149
  • 3
  • 35
  • 54
ctusch
  • 940
  • 9
  • 20

1 Answers1

0

http://dev.mysql.com/doc/refman/5.1/en/regexp.html that's all there is. You can't do more than pattern comparison.

Alin Purcaru
  • 43,655
  • 12
  • 77
  • 90