regex - how to create regular expression for this sentence? -
i have following statement {$("#aprilfoolc").val("holiwed27"); $("#ugadhiexampp").val("ugadicome");}.and want string combination.i have written following regex not working. please help!
(?=[\$("#]?)[\w]*(?<=[")]?)
your lookaround assertions using character classes mistake, , you've confused lookbehind , lookahead. try following:
(?<=\$\(")\w*(?="\))
Comments
Post a Comment