Can anyone help me with this issue, I am trying to change AWS Lambda service function name as below,
My actual requirement: Removing random text inbetween the service name
lambda-naming-test-FlightTailFunctionV2**-ZQRUSx5pucrm** in ap-southeast-2
lambda-naming-test-FlightTailFunctionV2 in ap-southeast-2
But I can get like this with Regex Format : {Service:DetectedName/^(.+?)-[A-Za-z0-9]+ in .*}
lambda-naming-test-FlightTailFunctionV2**-ZQRUSx5pucrm** in ap-southeast-2
lambda-naming-test-FlightTailFunctionV2
Can anyone suggest me better Regex format to remove random text inbetween the service name?

