I know that I can write a simple loop to check each character in a string and see if it is a alphanumeric character. If it is one, concat it to a new string. And thats it.
But, is there a more elegant shortcut to do so. I have a string (with CSS selectors to be precise) and I need to extract only alphanumeric characters from that string.