Reputation: 755
I need a regexp to find strings that start with a specific word then comes colon and whitespace for example
"ErrorID: blabla"
Please help. :(
Upvotes: 1
Views: 385
Reputation: 14992
This should work fine:
^(\w+): (.+)$
First match group will give the first word (e.g. ErrorID
), second the rest (e.g. blabla
).
Exact implementation would depend on the programming language you use.
Upvotes: 3