Need regex for the given value

Hi Team,

need regex value of below string
String=‘Online Forms)’

required output=“d817534a-855d-99a4-9873-68f19b80f601”

note- the value change in dynamically

Try this:
Solution1:

/[a-z0-9]{8}(?:-[a-z0-9]{4}){3}-[a-z0-9]{12}

Solution2:

Thank you,
Akhil

Hi @Mada_Sai_Krishna

Try this

Input.Split("/").Last

Regards,

Hi @Mada_Sai_Krishna

Input = "https://forms2.deluxe.com/gateway/publish/d817534a-855d-99a4-9873-68f19b80f601"

Output = System.Text.RegularExpressions.Regex.Match(Input,"(?<=publish\/).*").Value.Trim

Hope it helps!!

Hi @Mada_Sai_Krishna

Another approach

System.Text.RegularExpressions.Regex.Match(Input,"(?<=\/\w+\/)\w+\d+.*").Value

Regards,

@Mada_Sai_Krishna

If you got the solution for your question please mark it as solution to close the loop else happy to help.

Regards,