<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extract a Category ID from a URL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extract-a-Category-ID-from-a-URL/m-p/206654#M38414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: white;"&gt;/*this one gives you the id if your raw data needs to be read in*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;truncover&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;dlm&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;amp;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; @&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'categoryId='&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; id @&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; url &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: white;"&gt;$200.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=56906456"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=56906456&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=57155616"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=57155616&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: white;"&gt;/*This one gives you the id if your data is already in a table*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id_prx=prxchange(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'s/.+categoryId=(\d+).+/$1/o'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;,-&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;,url);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 17:51:26 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2015-07-20T17:51:26Z</dc:date>
    <item>
      <title>Extract a Category ID from a URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-a-Category-ID-from-a-URL/m-p/206653#M38413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial','sans-serif'; color: #222222; background: white;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial','sans-serif'; color: #222222; background: white;"&gt;I need to C. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial','sans-serif'; color: #222222; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial','sans-serif'; color: #222222; background: white;"&gt;The ID always follows “categoryId=” in the URL string and its always numbers.&amp;nbsp; I can’t use SCAN because the ID can be in a different place in the URL and is not always the same length . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 770px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="text-align: center; color: #575757; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="770"&gt;&lt;STRONG&gt;URL&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A href="http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP"&gt;&lt;SPAN style="color: black;"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow"&gt;&lt;SPAN style="color: black;"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=56906456"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=56906456&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt"&gt;&lt;SPAN style="color: black;"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=57155616"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=57155616&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, sans-serif; font-size: 12.6666669845581px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, sans-serif; font-size: 12.6666669845581px; background-color: #ffffff;"&gt;Again, its always the numbers which follow&amp;nbsp; "&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: Arial, sans-serif; font-size: 12.6666669845581px; background-color: #ffffff;"&gt;categoryId=" in the string. There may be other IDs in the URL which don't follow category ID so I need to make sure I'm not picking those up.&amp;nbsp; This is the output I'm looking for: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, sans-serif; font-size: 12.6666669845581px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;-webkit-right&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 840px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="color: rgb(87, 87, 87); text-align: center; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="770"&gt;&lt;STRONG&gt;URL&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="70"&gt;&lt;STRONG&gt;categoryId&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A href="http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP"&gt;&lt;SPAN style="color: black;"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;61765546&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow"&gt;&lt;SPAN style="color: black;"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;62593996&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;62593846&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;62594006&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=56906456"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=56906456&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;56906456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt"&gt;&lt;SPAN style="color: black;"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;62593866&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;6259387&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=57155616"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=57155616&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;57155616&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=1766618"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=1766618&lt;/A&gt;&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;1766618&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, sans-serif; font-size: 12.6666669845581px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.6666669845581px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;Any assistance is greatly appreciated. Thanks! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 17:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-a-Category-ID-from-a-URL/m-p/206653#M38413</guid>
      <dc:creator>JFM</dc:creator>
      <dc:date>2015-07-20T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Category ID from a URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-a-Category-ID-from-a-URL/m-p/206654#M38414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: white;"&gt;/*this one gives you the id if your raw data needs to be read in*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;truncover&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;dlm&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;amp;'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; @&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'categoryId='&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; id @&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; url &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: white;"&gt;$200.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=56906456"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=56906456&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=57155616"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=57155616&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; background: white;"&gt;/*This one gives you the id if your data is already in a table*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id_prx=prxchange(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'s/.+categoryId=(\d+).+/$1/o'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;,-&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;,url);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 17:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-a-Category-ID-from-a-URL/m-p/206654#M38414</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-07-20T17:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Category ID from a URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-a-Category-ID-from-a-URL/m-p/206655#M38415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3 style="color: #353535; font-family: Lato, sans-serif; background-color: #f0f1f2;"&gt;Code: Program&lt;/H3&gt;&lt;PRE class="sce-render" style="font-family: 'Courier New', Menlo, 'Lucida Console'; font-size: 16px;"&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;infile&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;truncover&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;url&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="format" style="color: #008080;"&gt;$200.&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=61765546&amp;amp;cp=1766205&amp;amp;ab=en_US_MLP_SLOT_1_S1_SHOP&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593996&amp;amp;AB=en_US_HP_S2_Men_slot_1_S2_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593846&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_thetrend:tropicalprints&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&amp;amp;AB=en_US_MLP_P_slot_10_S1_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=56906456"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=56906456&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=62593866&amp;amp;cp=1766205&amp;amp;ab=ln_men_cs_theshirt&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62593876&amp;amp;cp=1795710&amp;amp;AB=en_US_MLP__slot_2_S1_ShopNow&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=57155616"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=57155616&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cards-data" style="color: #bb9905;"&gt;&lt;A class="jive-link-external-small" href="http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666"&gt;http://www.mywebsite.com/shop/index.jsp?categoryId=1766618&amp;amp;ab=tn_women_golfandTennis&amp;amp;cp=17666&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;data&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;want&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;have&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt;pid&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;prxparse&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: #800080;"&gt;'/(?&amp;lt;=categoryId=)\d+/i'&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;call&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;prxsubstr&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;pid&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;url&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;position&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;position&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;ne&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="numeric" style="color: #008080; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;match&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;substr&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;url&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;position&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt;pid&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;position&lt;/SPAN&gt;&lt;SPAN class="text" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="color: #0000ff;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sec-keyword" style="color: #000080; font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="sep" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-a-Category-ID-from-a-URL/m-p/206655#M38415</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-21T14:17:58Z</dc:date>
    </item>
  </channel>
</rss>

