Remove non-ascii characters from string

hi all,
can anyone help me with the expression of removing non-ascii characters from the string

@som17

Try as below

str.replace("[^\x00-\x7F]", "")

Mark as solution if this helps

Thanks

1 Like

Can you refer the link. It may help

1 Like