<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000863" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000863</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003671</link>
    <description> &lt;p&gt;Just a small correction:&lt;/p&gt;
&lt;p&gt;while ($data =~ m/The province of (.+) as of (.+)\./sogi) &lt;/p&gt;
&lt;p&gt;------------------&lt;/p&gt;
 </description>
     <pubDate>Sun, 05 Dec 1999 14:04:00 +0000</pubDate>
 <dc:creator>sumengen</dc:creator>
 <guid isPermaLink="false">comment 1003671 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003670</link>
    <description> &lt;p&gt;that works great, thanks a lot.&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Dec 1999 00:59:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1003670 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003669</link>
    <description> &lt;p&gt;ok, this will work&lt;br /&gt;
$data=&quot;The province of Name(11:11) as of April 14, YR4.&quot;;&lt;/p&gt;
&lt;p&gt;while ($data =~ m/The province of (.+) as of (.+)./sogi)&lt;br /&gt;
{&lt;br /&gt;
print &quot;$1 and $2&quot;;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;The longest recorded flight of a chicken is 13 seconds.&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Dec 1999 00:52:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1003669 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003668</link>
    <description> &lt;p&gt;It says&lt;/p&gt;
&lt;p&gt;The province of Name(11:11) as of April 14, YR4.&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Dec 1999 00:05:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1003668 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003667</link>
    <description> &lt;p&gt;what does the $data contain?&lt;br /&gt;
$data=&quot;XXX (XX:XX)April 17, YR4&quot;;?&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;The longest recorded flight of a chicken is 13 seconds.&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Dec 1999 00:00:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1003667 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003666</link>
    <description> &lt;p&gt;the exact thing i&#039;m trying to match is &lt;/p&gt;
&lt;p&gt;The province of XXX (XX:XX) as of April 17, YR4&lt;/p&gt;
&lt;p&gt;it&#039;s a program for an online game i&#039;m trying to make.&lt;/p&gt;
&lt;p&gt;I need $1 to be XXX (XX:XX) and $2 to be April 17, YR4&lt;/p&gt;
&lt;p&gt;maybe that will help a little bit.&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 Dec 1999 22:43:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1003666 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003665</link>
    <description> &lt;p&gt;Hmm, thats wierd that it only gets the first letter.&lt;/p&gt;
&lt;p&gt;if&lt;br /&gt;
$data=&quot;one two three four&quot;;&lt;br /&gt;
than using&lt;br /&gt;
if($data=~ m/one(.+?)three(.+?)five/)&lt;br /&gt;
{&lt;br /&gt;
print &quot;$1 and $2\n&quot;;&lt;br /&gt;
}&lt;br /&gt;
should print&lt;/p&gt;
&lt;p&gt;&quot;two and four&quot;&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;The longest recorded flight of a chicken is 13 seconds.&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 Dec 1999 21:34:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1003665 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003664</link>
    <description> &lt;p&gt;thats close, it prints the first letter but i need the whole word.&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 Dec 1999 21:01:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1003664 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/regex#comment-1003663</link>
    <description> &lt;p&gt;Instead of (.*)&lt;br /&gt;
try (.+?)&lt;/p&gt;
&lt;p&gt;Also maybe use &quot;m&quot; before the first / so the regexp knows you are trying to match one &quot;somthing&quot; three &quot;somthing&quot; five, etc&lt;/p&gt;
&lt;p&gt;if($data=~ m/one (.+?) three (.+?) five/)&lt;br /&gt;
{&lt;br /&gt;
print &quot;$1 and $2\n&quot;;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Try that.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;The longest recorded flight of a chicken is 13 seconds.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;[This message has been edited by robp (edited 03 December 1999).]&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 Dec 1999 18:46:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1003663 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
