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

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -