Reputation: 61
I wanted to highlight/find string till '-'
character
04,035 [1] INFO - ascf
05,589 [1] INFO - jtion
07,365 [1] INFO - dbi
09,563 [1] INFO - braho
what could be the regex pattern to find the string?
Upvotes: 0
Views: 39
Reputation: 370
If you want to match everything up to the "-" character you could use:
^.*?-
Here is a great site for testing regexes:
Hope this helps. :-)
Upvotes: 2