in reply to Regular Expression to find Word Prefixes

Does (split " ")[0]; work for you?

After Compline,
Zaxo