how to find pattern in string until space code example Example: regular expression search for any character until Space /^[a-zA-Z-]*/ Creator:Zenonymous