Why isn't this regex working?? I can grab src but it gets all of them??

simpleonline12

New member
Sep 29, 2009
191
3
0
Here is the current regex

Code:
"src=[\""\'](http:\/\/|\.\/|\/)?\w+(\.\w+)*(\/\w+(\.\w+)?)*(\/|\?\w*=\w*(&\w*=\w*)*)?[\""\']>"


What I am trying to do is to grab element that is:

Code:
<script type="text/javascript" src="http://www.mysite="I need to grab everything inside these quotes">

With the current Regex I am able to grab the value but it also grabs all the "src" elements on the page.

Code:
src="http://www.mysite="I need to grab everything inside these quotes">

What I am attempting to do is to only get this one line that includes the

<script and then the src="">

And then just get the src="info from hrere"

How can I edit the current regex code to include <script type="text/javascript"


Thanks