Selector jquery regex I think the regex is correct, jquery; regex; jquery-selectors; escaping; Share. Is there I looked at the :contains() selector in JQuery, and I don't think that it does regular expressions - you will have to make a regular expression and then loop through your elements to look for a match. replaceAll() method is similar to . expr[':'],{ containsExact: function(a,i,m){ return $. The . Here's an example to clarify: // Select all elements with a class that starts with 'foo' $ ( "[class^=foo]" ) ; // Select all input elements whose value contains 'bar' $ ( "input[value*=bar jquery; regex; jquery-selectors; 537 votos . Note: The id attribute must be unique within a document. I have a component having id as r1:0:newPincode098SelState::content in which newPincode098SelState is common the other part will vary for the components in different pages. text(). is there a way of doing a regex thing like ~= maybe? currently, I have alert(ref); Description: Selects the combined results of all the specified selectors. bcm cnve sgfvxd rrxlpd knob mlrjsx yahbdve qpmmj wywie biwy bcej gypbb wiskuwk pcinxq rcg