How to regix for extract value

Hi @Stef_99

Use this regex in UiPath:

  1. For first output:

    ^(AAK-\d{8}-\d{6}-Trik-\d+)
    
    • Use System.Text.RegularExpressions.Regex.Match(input, pattern).Value
  2. For second output:

    (\d{2}[A-Z]{3})-Trik-\d+
    
    • Use System.Text.RegularExpressions.Regex.Match(input, pattern).Value

Let me know if you need adjustment