Skip to main content
Nintex Community Menu Bar
Solved

Extract email address

  • May 14, 2025
  • 5 replies
  • 85 views

Forum|alt.badge.img+11

Hello!

I am looking for assistance in retrieving ONLY the email address from the output below. 

 

i:0#.f|membership|jane.doe@company.com;#Jane Doe

 

Best answer by bamaeric

Try the expression below:

replace(replace([Form].[Requested By],"i:0#.f[|]membership[|]",""),";(.*)","")

5 replies

Forum|alt.badge.img+10
  • Nintex Employee
  • May 14, 2025

Hi ​@jpacheco 

You should be able to use Regex to do something like this.  A quick example would be an extract regex using (?<=\|.*\|).*@.*(?=;)

This does assume that all usernames will be a similar form though.


Forum|alt.badge.img+11
  • Author
  • Scout
  • May 14, 2025

@brent_read ,

 

Hi and thanks for your response! So I attempted the your recommendation but not able to get this to work… am I incorrect somewhere?

replace([Form].[Requested By],"(?<=\|.*\|).*@.*(?=;)")


bamaeric
Forum|alt.badge.img+14
  • Apprentice
  • Answer
  • May 14, 2025

Try the expression below:

replace(replace([Form].[Requested By],"i:0#.f[|]membership[|]",""),";(.*)","")


Forum|alt.badge.img+11
  • Author
  • Scout
  • May 15, 2025

@bamaeric ,

I was totally missing a lot to include, good to know! Thanks so much ​@bamaeric , this helped a lot!!!


bamaeric
Forum|alt.badge.img+14
  • Apprentice
  • May 15, 2025

Glad it helped ​@jpacheco !