Regex exclude certain character

Hi,

I am using the following regular expression

var regex = /action="(.*)"/;

to get the action value of a form code. I want to exclude double quote character (") from the value it matches. I tried a couple of things I found on the net but couldn’t make it work. Thanks for any ideas.

Backreference. Since you’re already putting the action value itself within parenthesis, you’ve already made $1 available for use.

action=$1 should become action=whatever.