Common Content for Data Engineering
- Common Content for Data Engineering 10.5.1
- All Products
REG_REPLACE(subject,pattern,replace,numReplacements)
Argument
| Required/
Optional
| Description
|
|---|---|---|
subject
| Required
| String datatype. Passes the string you want to search.
|
pattern
| Required
| String datatype. Passes the character string to be replaced. You must use perl compatible regular expression syntax. Enclose the pattern in single quotes. For more information, see
REG_EXTRACT.
|
replace
| Required
| String datatype. Passes the new character string.
|
numReplacements
| Optional
| Numeric datatype. Specifies the number of occurrences you want to replace. If you omit this option, REG_REPLACE will replace all occurrences of the character string.
|
REG_REPLACE( Employee_Name, ‘\s+’, ‘ ’)
|
|
|---|---|
|
|
|
|
|
|
|
|
Can you add any known issues related to the function here, so that developers can make a informed decision as to limitations of the function? For example - When using REG_REPLACE function in an Expression transformation, the PowerCenter session fails and Integration Service generates a core dump (informatica.com) refers to a known issue with this function
Hi Sanyasi Raju Dandu,
We’re working to address your comments and will get back to you.
Thanks, Informatica Documentation team