Solved

Regular expression - subStrings from name

  • 22 March 2021
  • 1 reply
  • 26 views

Badge +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

icon

Best answer by Nunezma 22 March 2021, 13:39

View original

1 reply

Badge +11

@kyon84 You can try the following regex:


 


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


Replacement text:$1


 




 

Reply