Skip to main content
Nintex Community Menu Bar

Removing first character using Regex

  • January 23, 2018
  • 3 replies
  • 387 views

Forum|alt.badge.img+8

Hi everyone I have a fairly simple question but I just can't figure it out. Basically I have a list with a column called Serial Number. Typicallly it's an alphanumeric 14 digit number. they all start with S. I would like to use Regular expression to remove that S. So for example STH9FT5HWWNM7 would ideally be turned into TH9FT5HWWNM7 any help would be greatly appreciated.

Thank you

3 replies

kdelcastillo
Nintex Partner
Forum|alt.badge.img+5
  • Nintex Partner
  • January 24, 2018

Does this work?

............($'*)

Basically working backwards to grab everything except the first character.


Forum|alt.badge.img+9

You can directly use 'fn-Replace' function in 'Build String' action.

212943_pastedImage_3.png

or use 'Replace' option in 'Regular Expression' action with below formula.

212942_pastedImage_2.png

And also, if you know the starting letter is always 'S' then directly you can use replacement text as 'S'.

212923_pastedImage_1.png 


Forum|alt.badge.img+8
  • Author
  • Rookie
  • January 24, 2018

And thank you Lakshmi both actually worked I used the second recommendation. Thanks to you both!