In JavaScript, I want to find all instances of text in the HTML that: start with (( and end with )). Here is what i currently have:
/^\(\(([a-zA-Z0-9\s\?\&\=\#\.\_\/\-\%\\]{1,})\)\)$/;
But it's not working.
How would i implement this? Thanks!
Try this regular expression:
var regExDoubleParentheses = /\(\(.*?\)\)/g;
You can test it out here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.