How do I convert regex ^\d+.\d+.\d+ that matches pattern at the beginning of a string so that it trims everything after the match:
1234.123.1234->1234.123.12341234.123.1234A->1234.123.12341234.123.1234-AB->1234.123.1234AB-1234.123.1234-> not a match =>AB-1234.123.1234