I need to match only the start of string like these with mainly pattern in "KEYWORD AAA/0010/0 " with a space after /0 and replace it with any other string. It has to happen for only the instance in the start.
KEYWORD AAA/0010/0
KEYWORD AAAAAA/0010/0
KEYWORD AAA/001000/0
KEYWORD AAA/0010/000
KEYWORD AAA/0010/0 Testing comment
KEYWORD AAA/0010/0 Testing comment KEYWORD AAA/0010/0 Testing comment
KEYWORD */*/*
KEYWORD ?/?/?
I have tried this but it does not distinguish between the instances at start and middle and it does not match the last one
^KEYWORD .*\/.*\/.*\s
Any help would be highly appreciated.