<?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: Regular Expressions: Performing String Extractions on Several Variables at Once in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210828#M39070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;SPAN class="pln"&gt;Try this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln"&gt;category_Id&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;=input(prxchange('s/.*(?&amp;lt;=categoryId=)(\d+).*/$1/',-1,string),12.);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 20:15:44 GMT</pubDate>
    <dc:creator>slchen</dc:creator>
    <dc:date>2015-07-24T20:15:44Z</dc:date>
    <item>
      <title>Regular Expressions: Performing String Extractions on Several Variables at Once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210826#M39068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;I have some SAS code that applies a Regular Expression to a URL string which pulls out a Category ID.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;The Variable looks like this&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;left&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="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;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" style="color: #575757; 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;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;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: #575757; 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;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;I apply this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln"&gt;data &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Want&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;set&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; have&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&lt;BR /&gt;category_Id&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;input&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;prxchange&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'s/.+categoryId=(\d+).+/$1/o'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,-&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;URL&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;12.&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;run&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;SPAN class="pun"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #575757; font-size: 15px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I get this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #575757; font-size: 15px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #575757; font-size: 15px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln"&gt;category_Id&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;61765546&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;62593996&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #575757; font-size: 15px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;&lt;SPAN class="lit"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #575757;"&gt;The data set I have actually has many URL variables – &lt;STRONG&gt;URL_1&lt;/STRONG&gt;, &lt;STRONG&gt;URL_2&lt;/STRONG&gt;, &lt;STRONG&gt;URL_3&lt;/STRONG&gt;….. and so on. It could go up to 80 URL vars or it could be 10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #575757;"&gt;What I need to do is pull the category IDs out of all the URL vars and then transpose them by Campaign_Name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #575757;"&gt;The data looks like this.&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;left&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: 723px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="124"&gt;&lt;STRONG&gt;Campaign_Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="138"&gt;&lt;STRONG&gt;URL_1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="179"&gt;&lt;STRONG&gt;URL_2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="136"&gt;&lt;STRONG&gt;URL_3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="146"&gt;&lt;STRONG&gt;URL_4&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="115" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;Summer Campaign&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="138"&gt;&lt;A href="http://www.mywebsite.com/family/index.jsp?categoryId=61765546"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=61765546&lt;/A&gt;&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="179"&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;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;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="136"&gt;&lt;A 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 class="xl66" style="color: #575757; text-align: left; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="146"&gt;&lt;A href="http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205"&gt;http://www.mywebsite.com/family/index.jsp?categoryId=62594006&amp;amp;cp=1766205&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is this: &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;-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: 206px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" style="color: #575757; text-align: -webkit-right; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="117"&gt;Campaign_Name&lt;/TD&gt;&lt;TD style="color: #575757; text-align: -webkit-right; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;" width="89"&gt;category_Id&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19" style="color: #575757; text-align: -webkit-right; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;Summer Campaign&lt;/TD&gt;&lt;TD style="color: #575757; text-align: -webkit-right; 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: #575757; text-align: -webkit-right; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;Summer Campaign&lt;/TD&gt;&lt;TD style="color: #575757; text-align: -webkit-right; 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: #575757; text-align: -webkit-right; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;Summer Campaign&lt;/TD&gt;&lt;TD style="color: #575757; text-align: -webkit-right; 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: #575757; text-align: -webkit-right; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;Summer Campaign&lt;/TD&gt;&lt;TD style="color: #575757; text-align: -webkit-right; padding: 0px; font-family: arial, helvetica, sans-serif; background-color: transparent;"&gt;62594006&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210826#M39068</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2015-07-24T20:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expressions: Performing String Extractions on Several Variables at Once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210827#M39069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to tweak this a bit to deal with when a URL is missing but here's the general idea.&lt;/P&gt;&lt;P&gt;Declare an array to hold the url. Find the Category ID, and then output the records so it transposes in one step. Only keep the variables you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;array url_array(80) $ url_:;&lt;/P&gt;&lt;P&gt;do i=1 to 80;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;category_Id&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;prxchange&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;'s/.+categoryId=(\d+).+/$1/o'&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;,-&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;URL_array(i)&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;12.&lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;OUTPUT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;keep campaign_name category_id;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="font-size: 15px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #ffffff;"&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS if your question relates to a previous question its sometimes useful to link back to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Change to correctly reference array &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210827#M39069</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-24T20:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expressions: Performing String Extractions on Several Variables at Once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210828#M39070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;SPAN class="pln"&gt;Try this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln"&gt;category_Id&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;=input(prxchange('s/.*(?&amp;lt;=categoryId=)(\d+).*/$1/',-1,string),12.);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210828#M39070</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2015-07-24T20:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expressions: Performing String Extractions on Several Variables at Once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210829#M39071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didn't seem to work for some reason.&amp;nbsp; The category_id ID var came back all null. Is there something wrong with the array? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210829#M39071</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2015-07-24T20:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expressions: Performing String Extractions on Several Variables at Once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210830#M39072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I modified the code above already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regular-Expressions-Performing-String-Extractions-on-Several/m-p/210830#M39072</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-24T20:31:57Z</dc:date>
    </item>
  </channel>
</rss>

