/^([^:]+).+\s+([<=>]+)\s+/ ^ ^ ^ ^ | | | | | | | + - Capture characters from this class enclosed by 1+ spaces | | + - Keep going, matching any character except \n | + - Capture characters that are not : + - Start at the beginning