TD_StrApply Function | strapply | Teradata Vantage - TD_StrApply - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantage™

TD_StrApply is a string manipulation function that applies a regular expression pattern to a string and returns a new string with the matches replaced by a specified replacement string. This function supports several string operators such as Trimming, Padding, Upper, and so on.

For example, suppose you have a table called employees with a column called email, which contains email addresses in the format firstname.lastname@company.com. You want to replace ‘.’ character with a ‘_’ character in all of the email addresses. You use the TD_StrApply function to achieve this.