cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Help with a Regular Expression

Jump to solution

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.

Tags (1)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: Help with a Regular Expression

Jump to solution

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

0 Kudos
Reply
Workflow Hero

Re: Help with a Regular Expression

Jump to solution

Thanks Eric! Much appreciated.

Reply