Bug 1328303

Summary: Substring function to search a string for regular expression pattern
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Anu Saji <asaji>
Component: TeiidAssignee: jolee
Status: CLOSED WONTFIX QA Contact: Filip Elias <felias>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: asaji, aszczucz, blafond, jolee, mbaluch, thauser, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
SQL Server JDV 6.1
Last Closed: 2016-04-21 20:42:06 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Anu Saji 2016-04-19 01:43:22 UTC
Description of problem:

In customers words
~~~
1. Can I use regular expressions to transform the values that come from the data source?
For example without regular expression:
Query: Select Field from Table
Result: "Hello World" # "# (" ($ "# ($!" #% $ = °°°:! [* [* "

With regular expression:
Query: Select ???? from Table
Result: "Hello World"

~~~



Additional info:
Customer might be looking for similar REGEX Functions provided in Oracle like 
~~~
https://docs.oracle.com/cd/B28359_01/server.111/b28286/functions138.htm
~~~

for example
~~~
SELECT
  REGEXP_SUBSTR('500 Oracle Parkway, Redwood Shores, CA',
                ',[^,]+,') "REGEXPR_SUBSTR"
  FROM DUAL;

REGEXPR_SUBSTR
-----------------
, Redwood Shores,
~~~