I want to match the first colon :
of this string (in R):
Ireland: Emergency Service Medal: Defence Forces
How to achieve this?
I tried many options from various questions here on StackExchange, but they always point to both colons. For example:
:(?=.*)
or:
(?<=.+?):(?=.+)
The following matches everything up to the first colon; but I only want the first colon, nothing before and nothing after that:
^([^:]*?)\s*:\s*