Regex to extract after 2 dashes

Hi all,pls do you know the best way to extract from this string abc-xyz-08fde5a456671234 and get output 5a456671234

Hi,

Is there any rule to identify the target string?

Regards,

starts with abc-

Hi,

We’d like to know rule how “5a456671234” is extracted , for example last 11 characters etc.

Regards,

agreed to @Yoichi that some more restrictions would help to stabilize the pattern. An optimistic approach could look like this:
grafik

Yea, last 11 character

Hi ppr, the expression did not capture the values on regexr.com

Hi,

How about the following?

Strings.Right(yourString,11)

Regards,

1 Like

Thanks, it worked

1 Like

Thanks ppr

looks working:


(?<=\-)[\da-z]{10,}

1 Like

positive look behind may not be supported in all browsers, please which browser did you use please

was working in theregex tools (not the browser the used regex engine is counting)
Also working within UiPath

grafik

1 Like

Thanks