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.