Can a regular expression be used inside a stored procedure? If it can, how? Can you give some examples of how to do it?
+17
A:
Generally, yes.
MySQL: http://dev.mysql.com/doc/refman/5.1/en/regexp.html
Oracle: http://www.oracle.com/technology/obe/obe10gdb/develop/regexp/regexp.htm
MS SQL: http://msdn.microsoft.com/en-us/magazine/cc163473.aspx
Some more:
PostgreSQL: http://www.postgresql.org/docs/8.3/static/functions-matching.html
DB2: http://www.ibm.com/developerworks/data/library/techarticle/0301stolze/0301stolze.html
Informix: http://www.ibm.com/developerworks/data/zones/informix/library/techarticle/db%5Fregexp.html
SQL Anywhere: http://iablog.sybase.com/paulley/2009/06/using-regular-expressions-with-sql-anywhere/
o.k.w
2009-10-30 14:13:33