Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

replace the string using wild card

Payal1
7 - Meteor

I want to replace the string that starts with " (5" and has 7 characters and ends with ")"

e.g. " (5??????) "

 

Thanks,

 

3 REPLIES 3
cmcclellan
13 - Pulsar

You can use the REGEX_REPLACE function in a formula tool, or the RegEx tool itself

 

When you find (5??????) what do you want to replace it with ?

danrh
13 - Pulsar

Adding examples for what @cmcclellan suggested:

 

REGEX_Replace([Field1], '\(5.{7}\)', 'NewText')

Or, if you want to use the RegEx tool:

image.png

Payal1
7 - Meteor

It worked, Thank you

Labels