Jump to content
UBot Underground

Need A Regex Maniac To Solve This (Probably Very Easy) Lol


Recommended Posts

How can i use regex to get the programId=15?

 

I just need to extract the "15" is this possible?

 

Cheers

<script type="text/javascript" src='http://adn.ebay.com/files/js/min/jquery-1.6.2-min.js'></script>
<script type="text/javascript" src='http://adn.ebay.com/files/js/min/ebay_activeContent-min.js'></script>
<script charset="utf-8" type="text/javascript">
document.write('\x3Cscript type="text/javascript" charset="utf-8" src="http://adn.ebay.com/cb?programId=15&campId=5335900092&toolId=10026&keyword=teapots&width=728&height=90&font=1&textColor=000000&linkColor=0000AA&arrowColor=8BBC01&color1=709AEE&color2=[COLORTWO]&format=ImageLink&contentType=TEXT_AND_IMAGE&enableSearch=y&usePopularSearches=n&freeShipping=n&topRatedSeller=n&itemsWithPayPal=n&descriptionSearch=n&showKwCatLink=n&excludeCatId=&excludeKeyword=&catId=&disWithin=200&ctx=n&autoscroll=n&flashEnabled=' + isFlashEnabled + '&pageTitle=' + _epn__pageTitle + '&cachebuster=' + (Math.floor(Math.random() * 10000000 )) + '">\x3C/script>' );
</script>
Link to post
Share on other sites
alert($find regular expression("<script type=\"text/javascript\" src=\'http://adn.ebay.com/files/js/min/jquery-1.6.2-min.js\'></script>
<script type=\"text/javascript\" src=\'http://adn.ebay.com/files/js/min/ebay_activeContent-min.js\'></script>
<script charset=\"utf-8\" type=\"text/javascript\">
document.write(\'\\x3Cscript type=\"text/javascript\" charset=\"utf-8\" src=\"http://adn.ebay.com/cb?programId=15&campId=5335900092&toolId=10026&keyword=teapots&width=728&height=90&font=1&textColor=000000&linkColor=0000AA&arrowColor=8BBC01&color1=709AEE&color2=[COLORTWO]&format=ImageLink&contentType=TEXT_AND_IMAGE&enableSearch=y&usePopularSearches=n&freeShipping=n&topRatedSeller=n&itemsWithPayPal=n&descriptionSearch=n&showKwCatLink=n&excludeCatId=&excludeKeyword=&catId=&disWithin=200&ctx=n&autoscroll=n&flashEnabled=\' + isFlashEnabled + \'&pageTitle=\' + _epn__pageTitle + \'&cachebuster=\' + (Math.floor(Math.random() * 10000000 )) + \'\">\\x3C/script>\' );
</script>","(?<=programId=)[0-9]*(?=&campId)")) 

This will work for you , Regex is   (?<=programId=)[0-9]*(?=&campId)

Edited by addy196
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...