Skip to main content
Nintex Community Menu Bar
Solved

Regular expression - subStrings from name

  • March 22, 2021
  • 1 reply
  • 58 views

Forum|alt.badge.img+1

Hello,

 

got Name which I got from Last Task Respondent Display Name. For example: Tom Hanks. 

And trying to convert it to this format - ToHa.

 

I want first two characters from First Name and first two characters from Last Name. Can you please advise how to split value by " " an convert to desired format?

 

Thank you

Best answer by Nunezma

@kyon84 You can try the following regex:

 

Pattern: W*(p{L}{1,2})w*W*

Replacement text:$1

 

 

1 reply

Forum|alt.badge.img+11
  • Scholar
  • Answer
  • March 22, 2021

@kyon84 You can try the following regex:

 

Pattern: W*(p{L}{1,2})w*W*

Replacement text:$1