I want to do a load test my Heroku application using Jmeter. To access the functionality of the application, I need to login through Facebook first. I tried with browser record
I don't know the JMeter context, but the regex can be something like:
\?code=(.*)
You might need to double the backslash. The $ can be problematic if the header is checked as a whole, you can replace it with \n perhaps.
[EDIT] I found the tester pointed from the JMeter page and used it against the header content you gave. Apparently the $ was not necessary, the search is stopping on a line bound. Still not sure about doubling the backslash. Experiment.