Get the middle initial after a name using regex , the patter would be the last single letter from a string ? . Thanks for any idea.
Example Input :
Scott M
Output:
M
Example Input :
Scott Markcus J
Output : J
Get the middle initial after a name using regex , the patter would be the last single letter from a string ? . Thanks for any idea.
Example Input :
Scott M
Output:
M
Example Input :
Scott Markcus J
Output : J
Alternative
Split with " " and fetch the last item in the array.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.