Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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