<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Regexp with replace' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Regexp with replace' posted on the 'Perl' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 22:51:42 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 22:51:42 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Regexp with replace</title>
      <link>http://www.programmersheaven.com/mb/perl/408729/408729/regexp-with-replace/</link>
      <description>I'm trying to do a regexp with a replace. &lt;br /&gt;
 &lt;br /&gt;
I have the following regexp:&lt;br /&gt;
^(?s)(?:.*)(?:Resistance Z/F A-Pair TG\s*)(\w+)(?:.*)&lt;br /&gt;
&lt;br /&gt;
On the following source examples. &lt;br /&gt;
&lt;br /&gt;
Resistance  Z/F  A-Pair TG  OR Kohms&lt;br /&gt;
Resistance  Z/F  A-Pair TG  1234 Kohms&lt;br /&gt;
&lt;br /&gt;
The regexp currently returns the "OR" in example 1 and 1234 in exmplae 2, exactly what I wanted, however I need to change/replace the OR in example 1 to a zero (0). &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/408729/408729/regexp-with-replace/</guid>
      <pubDate>Mon, 02 Nov 2009 19:31:12 -0700</pubDate>
      <category>Perl</category>
    </item>
  </channel>
</rss>
