AnsweredAssumed Answered

Help with a Regular Expression

Question asked by lexiefall on Nov 27, 2018
Latest reply on Nov 28, 2018 by lexiefall



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.



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.