Tryna get exact thing

how can i get only thing which comes after “%” and before the thing in the parenthesis

image

Only 20, 5, 12 which comes after “%” and before parenthesis stuff

@170290064

Please try this

(?<=%)\d+

System.Text.RegularExpressions.Regex.Match(str,"(?<=%)\d+").Value

cheers


reagrds,

Hi @170290064

Try this

(?<=\s\%)\d+

image

I hope it helps!!

Hi @170290064

Use the below expression to extract the data between % and Parentheses

StringVar.Split("%")(1).Split("(")(0).Trim.ToString

Hope it helps!!

@170290064

(?<=%).*(?=\s+\()

Hope it helps

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.