Calling all Alteryx customers: Refer your colleague to try Alteryx and receive a $50 gift card. Sign up now!

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
14 - Magnetar

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
Top Solution Authors