# AWS Lambda Service Naming using Regex

**URL:** <https://community.dynatrace.com/t/aws-lambda-service-naming-using-regex/55624>\
**Category:** Cloud platforms\
**Tags:** aws, services, lambda\
**Created:** [April 20, 2026, 6:46am UTC](https://community.dynatrace.com/t/aws-lambda-service-naming-using-regex/55624 "2026-04-20T06:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhavathi](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@prabhavathi](https://community.dynatrace.com/u/prabhavathi)\
**Post date:** [April 20, 2026, 6:46am UTC](https://community.dynatrace.com/t/aws-lambda-service-naming-using-regex/55624/1 "2026-04-20T06:46:40Z")

</div>

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

 ![prabhavathi_0-1776667479339.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bc42ee111cec6be14d657b81f5a899ecf9cfbd5b.png)

 ![prabhavathi_1-1776667507105.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/5/6554b20a86311371de94c1e0e7f0d6c0bc93c36e.png)

Can anyone suggest me better Regex format to remove random text inbetween the service name?
