<?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: Perl - REGEXP Question. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264963#M715032</link>
    <description>Thx procura,&lt;BR /&gt;My main fault was a simple typo&lt;BR /&gt;$(Wort01) instead to ($Wort01).&lt;BR /&gt;&lt;BR /&gt;But Thanks tooo for the other tips, they could make my code much easier to read....&lt;BR /&gt;</description>
    <pubDate>Sun, 02 May 2004 14:11:27 GMT</pubDate>
    <dc:creator>Josef Ziegler</dc:creator>
    <dc:date>2004-05-02T14:11:27Z</dc:date>
    <item>
      <title>Perl - REGEXP Question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264960#M715029</link>
      <description>Im working on a search engine in pearl.&lt;BR /&gt;I looking for a REGEXP funktion using the string REALY found and not what I was looking for.&lt;BR /&gt;&lt;BR /&gt;This is the because lower and upper case handling.&lt;BR /&gt;The found words will get highlighted, and if the user entered it lowercase but in the file its uppercase we like to highlighte it uppercase, which is not working in our code.&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;if($Wort01 =~ /.+/) {$_ =~ s/$(Wort01)/&lt;SPAN class="search"&gt;$1&amp;lt;\/span&amp;gt;/g}&lt;/SPAN&gt;</description>
      <pubDate>Sat, 01 May 2004 19:34:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264960#M715029</guid>
      <dc:creator>Josef Ziegler</dc:creator>
      <dc:date>2004-05-01T19:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Perl - REGEXP Question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264961#M715030</link>
      <description>$Wort01 and s{\b($Wort01)\b}{&lt;SPAN class="search"&gt;$1&lt;/SPAN&gt;}/gi;&lt;BR /&gt;&lt;BR /&gt;several remarks&lt;BR /&gt;&lt;BR /&gt;1. $(Wort01) will not match what you expect, ($Wort01) might&lt;BR /&gt;2. use /i to ignore case&lt;BR /&gt;3. use s{}{} or any other brace type seperator when working with regex that uses / to increase readability&lt;BR /&gt;4. $Wort01 =~ /.+/ is about the most inefficient I've seen for testing truth. You might consider $Wort01 =~ m/\S/&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Sun, 02 May 2004 03:48:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264961#M715030</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-05-02T03:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Perl - REGEXP Question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264962#M715031</link>
      <description>Oh, and forgot, since $_ is the default for many functions and operators, you'll increase readability IMHO, by using it like that, so&lt;BR /&gt;&lt;BR /&gt;$_ =~ s{}{};&lt;BR /&gt;&lt;BR /&gt;is the same as plain&lt;BR /&gt;&lt;BR /&gt;s{}{};&lt;BR /&gt;&lt;BR /&gt;Perl has already enough line noise as it is&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn. [ who just happens to love perl's line noise ]</description>
      <pubDate>Sun, 02 May 2004 03:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264962#M715031</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-05-02T03:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perl - REGEXP Question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264963#M715032</link>
      <description>Thx procura,&lt;BR /&gt;My main fault was a simple typo&lt;BR /&gt;$(Wort01) instead to ($Wort01).&lt;BR /&gt;&lt;BR /&gt;But Thanks tooo for the other tips, they could make my code much easier to read....&lt;BR /&gt;</description>
      <pubDate>Sun, 02 May 2004 14:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-regexp-question/m-p/3264963#M715032</guid>
      <dc:creator>Josef Ziegler</dc:creator>
      <dc:date>2004-05-02T14:11:27Z</dc:date>
    </item>
  </channel>
</rss>

