There is a third party tool I would like to use that bulk import's a number of files into SharePoint and associates them with users. It needs a regular expression to do the conversion between file name and account name.
Our files are in the format firstname surname
or firstname middlename surname
.
Our Account names are in the form firstname
then first inital of the surname
.
So to illustrate:
foo bar -> foob
foo bar qux -> fooq
On searching I did find some examples of obtaining the first letter of last words but they all utilised functions within code in combination with regex, but that isn't available to me in this case. Is it possible to do this with regex alone?