Skip to main content

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.

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


Thanks Eric! Much appreciated.


Reply