Skip to main content

I have tried the StringReplacer but I'm struggling to remove everything I need to, without also removing part or all of the email as well. Any help would be appreciated, thank you.

Hi @clare42​ ,

 

Try this regex with the StringSearcher transformer.

<\w.+]+@d\w+\.\w.]+

The output should be: Joe.bloggs@example.co.uk


Hi @clare42​ ,

 

Try this regex with the StringSearcher transformer.

<\w.+]+@d\w+\.\w.]+

The output should be: Joe.bloggs@example.co.uk

Hi, thank you. It works much better, but it seems to cut the end bit off, so I end up with Joe.Bloggs@example


Hi @clare42​ ,

 

Try this regex with the StringSearcher transformer.

<\w.+]+@d\w+\.\w.]+

The output should be: Joe.bloggs@example.co.uk

Nice!


Hi, thank you. It works much better, but it seems to cut the end bit off, so I end up with Joe.Bloggs@example

Hi @clare42​ . My regular expression knowledge isn't the best, so you might want to use this regular expression that should be a safer bet in capturing email addresses. 

 

Source: https://emailregex.com/

Regex: 

(?::a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.

 

In my testing it does in fact capture the email address you provided in your example. 

parametersfme


Hi, thank you. It works much better, but it seems to cut the end bit off, so I end up with Joe.Bloggs@example

Thank you 😊


Reply