<?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 Extracting data in between strings... in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086522#M93241</link>
    <description>&lt;!--!*#--&gt;I have a variable called WebJump in a perl script.&lt;BR /&gt;&lt;BR /&gt;When i print the content it gives me this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;&lt;/TITLE&gt;T&lt;BR /&gt;his page is used to hold your data while you are being authorized for your reque&lt;BR /&gt;st.&lt;BR /&gt;&lt;BR /&gt;You will be forwarded to continue the authorization process. If this &lt;BR /&gt;does not happen automatically, please click the Continue button below.&lt;FORM name=""&gt;="AUTOSUBMIT" METHOD="POST" STARThttps://test.ip.com/siteminderagent/forms/&lt;BR /&gt;login.fcc?TYPE=33554433&amp;amp;REALMOID=06-00034bb7-e037-116f-8241-808d67a50008&amp;amp;GUID=&amp;amp;S&lt;BR /&gt;MAUTHREASON=0&amp;amp;METHOD=POST&amp;amp;SMAGENTNAME=$SM$8OJVwItP%2fV8GXRhL%2fhch6KJt3EvC2AWLQ7&lt;BR /&gt;%2bWLfTgx3%2bWD7k%2buJc3dVSFPOr1jTxg&amp;amp;TARGET=$SM$%2fEND="HIDDEN" NAME="SMPostPres&lt;BR /&gt;erve" VALUE="S1NJbjNmby81VzRqMmo0cTNuWm9NdFo3cVpZSlF6enpMc2laNWZrcnRudlhWVEUzM0x&lt;BR /&gt;UTHVPR1Y3REpwNnUwM1ZVd1IySFdQZkRDRmpUQldrV01ybk9pcEFBZnpzNmg4RG1yQ0lRQUNzbTFMekd&lt;BR /&gt;iUG9Eck02M2NUcis4RG5YQ3l2dkZHOGp4WDRPbHJJTFdJOXUvbnFBPT0END="SUBMIT" VALUE="Cont&lt;BR /&gt;inue"&amp;gt;&lt;/FORM&gt;&lt;BR /&gt;&lt;BR /&gt;I want to print everthing between START and END and then reassign it to my WebJump variable.&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
    <pubDate>Thu, 03 Jan 2008 19:20:07 GMT</pubDate>
    <dc:creator>jmckinzie</dc:creator>
    <dc:date>2008-01-03T19:20:07Z</dc:date>
    <item>
      <title>Extracting data in between strings...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086522#M93241</link>
      <description>&lt;!--!*#--&gt;I have a variable called WebJump in a perl script.&lt;BR /&gt;&lt;BR /&gt;When i print the content it gives me this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;&lt;/TITLE&gt;T&lt;BR /&gt;his page is used to hold your data while you are being authorized for your reque&lt;BR /&gt;st.&lt;BR /&gt;&lt;BR /&gt;You will be forwarded to continue the authorization process. If this &lt;BR /&gt;does not happen automatically, please click the Continue button below.&lt;FORM name=""&gt;="AUTOSUBMIT" METHOD="POST" STARThttps://test.ip.com/siteminderagent/forms/&lt;BR /&gt;login.fcc?TYPE=33554433&amp;amp;REALMOID=06-00034bb7-e037-116f-8241-808d67a50008&amp;amp;GUID=&amp;amp;S&lt;BR /&gt;MAUTHREASON=0&amp;amp;METHOD=POST&amp;amp;SMAGENTNAME=$SM$8OJVwItP%2fV8GXRhL%2fhch6KJt3EvC2AWLQ7&lt;BR /&gt;%2bWLfTgx3%2bWD7k%2buJc3dVSFPOr1jTxg&amp;amp;TARGET=$SM$%2fEND="HIDDEN" NAME="SMPostPres&lt;BR /&gt;erve" VALUE="S1NJbjNmby81VzRqMmo0cTNuWm9NdFo3cVpZSlF6enpMc2laNWZrcnRudlhWVEUzM0x&lt;BR /&gt;UTHVPR1Y3REpwNnUwM1ZVd1IySFdQZkRDRmpUQldrV01ybk9pcEFBZnpzNmg4RG1yQ0lRQUNzbTFMekd&lt;BR /&gt;iUG9Eck02M2NUcis4RG5YQ3l2dkZHOGp4WDRPbHJJTFdJOXUvbnFBPT0END="SUBMIT" VALUE="Cont&lt;BR /&gt;inue"&amp;gt;&lt;/FORM&gt;&lt;BR /&gt;&lt;BR /&gt;I want to print everthing between START and END and then reassign it to my WebJump variable.&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Thu, 03 Jan 2008 19:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086522#M93241</guid>
      <dc:creator>jmckinzie</dc:creator>
      <dc:date>2008-01-03T19:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data in between strings...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086523#M93242</link>
      <description>This might point you in the right direction:&lt;BR /&gt;&lt;A href="http://www.wellho.net/forum/Perl-Programming/return-part-of-a-string-that-matches-a-pattern.html" target="_blank"&gt;http://www.wellho.net/forum/Perl-Programming/return-part-of-a-string-that-matches-a-pattern.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;like this:&lt;BR /&gt;$WebJump =~ /START(.*)END/;&lt;BR /&gt;print "We got $1 out of that!\n";</description>
      <pubDate>Thu, 03 Jan 2008 21:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086523#M93242</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2008-01-03T21:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data in between strings...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086524#M93243</link>
      <description>Hi Jody:&lt;BR /&gt;&lt;BR /&gt;I assume from the content that you truly want everything between the strings START and END, disregarding any newline boundries.&lt;BR /&gt;&lt;BR /&gt;Using a copy-and-paste of your data :&lt;BR /&gt;&lt;BR /&gt;# echo ${WebJump}|perl -000 -nle 'print $1 if m/.*START(.*)END.*/s'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 03 Jan 2008 21:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086524#M93243</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-01-03T21:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data in between strings...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086525#M93244</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Where-ever the variable 'WebJump' has this value, use the following lines in your perl script:&lt;BR /&gt;&lt;BR /&gt;if($WebJump =~ /START(.*)END/s) {&lt;BR /&gt;   print "Stuff between 'START' and 'END': $1\n"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;- Suraj</description>
      <pubDate>Tue, 15 Jan 2008 10:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086525#M93244</guid>
      <dc:creator>Suraj Singh_1</dc:creator>
      <dc:date>2008-01-15T10:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data in between strings...</title>
      <link>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086526#M93245</link>
      <description>&lt;!--!*#--&gt;I needed to add a cookie container.&lt;BR /&gt;&lt;BR /&gt;  # Open Cookie Object&lt;BR /&gt;  my $cookie_jar = HTTP::Cookies-&amp;gt;new(&lt;BR /&gt;  file    =&amp;gt;      "/adminweb/usm/tlrs/cookies.t",&lt;BR /&gt;  autosave =&amp;gt; 1,&lt;BR /&gt;  );&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 14:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/extracting-data-in-between-strings/m-p/5086526#M93245</guid>
      <dc:creator>jmckinzie</dc:creator>
      <dc:date>2008-01-31T14:58:17Z</dc:date>
    </item>
  </channel>
</rss>

