I’m having a little trouble with searching a string for something. I am currently using the ‘String.search(“This Is A String”);’ method.
But I need to search a string for the right parenthasis character “)”. Just typing it in between the quotation marks doesn’t work. I tryed to make a string var that holds a string { var AString = “‘);” }. This doesn’t work though because the following code { String.search(AString); }.
That’s not exactly the wording for my document, but it is the exact same concept, and almost identical except I use different var names.
Is there any other way to search a string so I can find the parenthasis?