How to extract only the text and numbers from the input

I would like to use regex expressions to extract only text and numbers from my input field. I notice that users put everything in these fields and I would like to avoid saving characters that are not letters and numbers. What I tried was this but I was unsuccessful:

Could anyone help?

I suggest you to use :find and replace instead of extract with this regex [^A-Za-z0-9] don’t forget to activate regex checkbox in find and replace and leave replace by empty

thank you so much! it worked! can i ask you if you know how can i avoid that my text to be together. example, using this regex expression my result was: MyName instead of My Name.

[^A-Za-z0-9 ] (with a space after 9) should do the job

thank you so much! I appreciate all the help!

1 Like