Folks, I'm trying to example the uage of the multi...
# announcements
m
Folks, I'm trying to example the uage of the multiple methods with
with
nd am struggling to even get it working. I don't think I understand exactly how this works. So windwering if anyone can help me out here. I have:
Copy code
class StringParser(string: String){
    private var stringToClean = string
    fun removeHTMLTags() = Regex("<[^>]*>").replace(stringToClean, "")
    fun removeSpecialCharacters() = Regex("[^A-Za-z0-9 ]").replace(stringToClean, "")
}
Now, I should be able to instantiate this class with a string, and call the methods on it to return a clean string right?