Selects all text when the element is focused

Selects all text before the first period when the element is focused

Only select the pattern on the first focus

Fork me on GitHub