Monday, February 7, 2011

What's the best approach to embed RegEx in Oracle or SQL Server 2005 SQL?

This is a 3 part question regarding embedded RegEx into SQL statements.

  1. How do you embed a RegEx expression into an Oracle PL/SQL select statement that will parse out the “DELINQUENT” string in the text string shown below?

  2. What is the performance impact if used within a mission critical business transaction?

  3. Since embedding regex into SQL was introduced in Oracle 10g and SQL Server 2005, is it considered a recommended practice?


Dear Larry :

Thank you for using ABC's alert service.

ABC has detected a change in the status of one of your products in the state of KS. Please review the information below to determine if this status change was intended.

ENTITY NAME: Oracle Systems, LLC

PREVIOUS STATUS: --

CURRENT STATUS: DELINQUENT

As a reminder, you may contact your the ABC Team for assistance in correcting any delinquencies or, if needed, reinstating the service. Alternatively, if the system does not intend to continue to engage this state, please notify ABC so that we can discontinue our services.

Kind regards,

Service Team 1 ABC

--PLEASE DO NOT REPLY TO THIS EMAIL. IT IS NOT A MONITORED EMAIL ACCOUNT.--

Notice: ABC Corporation cannot independently verify the timeliness, accuracy, or completeness of the public information maintained by the responsible government agency or other sources of data upon which these alerts are based.

0 comments:

Post a Comment