RegEx question..how can I add this into my current statement?

simpleonline

Active member
Joined
Sep 13, 2011
Messages
33
Programming Experience
Beginner
Here is the current regex

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


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

VB.NET:
<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.

VB.NET:
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
 
Back
Top