Lukeidiot Posted November 14, 2010 Share Posted November 14, 2010 I am trying to use regex to find the following string: <input type="hidden" name="form_key" value="jg351pzpvzMSkyJIZZhkT7AfcQ"> How would I go about getting just the value "jg351pzpvzMSkyJIZZhkT7AfcQ" ? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/218664-simple-regex-problem/ Share on other sites More sharing options...
Alex Posted November 14, 2010 Share Posted November 14, 2010 ~name="form_key" value="([^"]+)"~ Quote Link to comment https://forums.phpfreaks.com/topic/218664-simple-regex-problem/#findComment-1134199 Share on other sites More sharing options...
Lukeidiot Posted November 15, 2010 Author Share Posted November 15, 2010 ~name="form_key" value="([^"]+)"~ Thanks so much! Quote Link to comment https://forums.phpfreaks.com/topic/218664-simple-regex-problem/#findComment-1134216 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.