Question
Strip Characters from String?
Hi,
How can I strip off some characters from the end of a string? I am not very good at regular expressions but perhaps I may not need one? Here is the data
first_name_510
last_name_2267
I need a function that will strip off everything from the right including the underscore. I should be left with the below:
first_name
last_name
Any help highly appreciated
Regards
How can I strip off some characters from the end of a string? I am not very good at regular expressions but perhaps I may not need one? Here is the data
first_name_510
last_name_2267
I need a function that will strip off everything from the right including the underscore. I should be left with the below:
first_name
last_name
Any help highly appreciated
Regards
