There is a string having the following pattern
Part1 : Part2
Part1 is a string without any “space” inside it, or this string can include anything except “space”. Part2 is another string which can have “space” inside. Between Part1 and Part2, the separator is “space””:””space”, i.e., : How to write a regular expression to capture Part1. Thanks.