I have a crawler setup with Scrapy and am trying to process links. The problem is the links are embedded in Javascript and I am struggling to create a regular expression. Here are 3 samples of what I am trying to process:

1. `javascript:openInIFrame('main', 'setup.phtml%3f.op%3d3800%26.who%3dAAAAAAAAAAAA%26.menuItemRefNo=118')`
2. `javascript:window.open('overview.phtml?&.who=AAAAAAAAAAAA&.id=2', '43425235', 'menubar=no,toolbar=no,location=no,resizable=yes,maximize=yes');`
3. `javascript:openInIFrame('main', "page.phtml%3f.op%3d1499%26.who%3dAAAAAAAAAAAA%26.ifmod%3dtest&.menuItemRefNo=7")`

The resulting relative URL for each would be between the single/double quotes:

1. `setup.phtml%3f.op%3d3800%26.who%3dAAAAAAAAAAAA%26.menuItemRefNo=118`
2. `overview.phtml?&.who=AAAAAAAAAAAA&.id=2`
3. `page.phtml%3f.op%3d1499%26.who%3dAAAAAAAAAAAA%26.ifmod%3dtest&.menuItemRefNo=7`

I have tried variations of `'(.*?)'` and `(["'])(?:(?=(\\?))\2.)*?\1` but cannot seem to get it right. What am I missing here?