How to Trim a complex string

I AM Scraping data from screem and got
Var = [“Comp_id”: “163452”,]
INCLOUDING “”, HOLD STUFF IN IS MY VAR
and i’d like to trim string into163452
leave only Numbers, what should i do?

Hi,

Is your Var String type? If so, can you try the following expression?

System.Text.RegularExpressions.Regex.Match(Var,"\d+").Value

Regards,

2 Likes

THANKS THAT’S REALLY WORKING
APPRECIATE THAT SOOOO MUCH!!

1 Like

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