text is :
WYATT - Ranked # 855 with 0.006 % XAVIER - Ranked # 587 with 0.013 % YONG - Ranked # 921 with 0.006 % YOUNG - Ranked # 8
Use this regex
^\w+
\w+ matches 1 to many characters.
\w+
\w is similar to [a-zA-Z0-9_]
\w
[a-zA-Z0-9_]
^ depicts the start of a string
^
About Your Regex
Your regex (.*)?[ ] should be ^(.*?)[ ] or ^(.*?)(?=[ ]) if you don't want the space
(.*)?[ ]
^(.*?)[ ]
^(.*?)(?=[ ])