Remove alphabet using regex

hi all,
i have AFC998800
i want to remove alphabet from string

@ashishmani - StrOutput = regex.replace(yourstring,“[A-z]+”,string.empty)

Import: system.text.regularexpressions

1 Like

@ashishmani - please look at the instruction which I provided above.

Please go to import tab at the bottom and add as I provided above.

image

Thanks it’s works

Object reference not set to an instance of an object. (i get this error)

can you help me in this also

@ashishmani - Is this related the query you posted?? If its different I would suggest to open a new topic.

Before that, please mark my post as solution, which closes this thread and help others…

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