Skip to main content
Nintex Community Menu Bar

Help with a Regular Expression

  • November 28, 2018
  • 2 replies
  • 31 views

Forum|alt.badge.img+4

Hi,

I am trying to replace all characters before the the first capital letter. It's not a set number of characters that needs replacing. The pattern is like this 222#Firstname.Lastname (but preceding number of characters changes)

Using .+?(?=[#]) I can replace everything before the # but not including the #. 

Using .+?(?=[A-Z]) I end up with just the last name.

#Firstname.Lastname

What I want is Firstname.Lastname

I'm sure its not hard I just haven't worked with Regular expressions much.

Thanks in advance for any tips.

2 replies

bamaeric
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • November 28, 2018

Hi Lexie,

Try using the regular expression below:

(^.*?(?=#)#)

Check out my blog post for more information: Regular Expression to Get All Characters After a Specific Character in Nintex Workflow


Forum|alt.badge.img+4
  • Author
  • November 28, 2018

Thanks Eric! Much appreciated.