Keep only alphabets and numbers
AnsweredI need to keep only alphabets (a~z, A~Z, 0~9, " "). How can I do it using REPLACEALL?
-
Each function will have good info on its functionality (e.g.: http://www.datameer.com/documentation/display/DAS50/REPLACEALL) and if you click on the "<regular expression>" link it will forward you to this page: http://docs.oracle.com/javase/tutorial/essential/regex/index.html. There is also a lot of quick and simple tutorials online about regular expressions. I find this one pretty helpful: http://www.zytrax.com/tech/web/regex.htm. Hope this helps.
-
I would try the following:
REPLACEALL(#text;"~*\\W")The Expression is: /~*\W/
Note: Inside the function above, the '\' is escaped by another '\'.
I typically use the following site to test my expressions:
http://rubular.com/
Please sign in to leave a comment.
Comments
5 comments