I have a text looking like this
name_123 name 2022-6-1 abc
I want this
name_123
How can I do that?
I have a text looking like this
name_123 name 2022-6-1 abc
I want this
name_123
How can I do that?
.*. matches newline not checked .* means searching for a space ( ) followed by any characters (.*). Regex matches greedily by default so it'll match everything from the first space until the end of line
See also