Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Re: regexp trouble

Expand Messages
  • Gary Taylor
    $tmp =~ s/aaa_/ /g; ## will remove every instance. This is untested, and if it doesn t remove the underscore may need to be ## preceded by a backslash like
    Message 1 of 2 , May 7, 2001
    • 0 Attachment
      $tmp =~ s/aaa_/ /g;
      ## will remove every instance. This is untested, and if it doesn't remove the
      underscore may need to be ## preceded by a backslash like so:
      $tmp =~ s/aaa\_/ /g;

      HTH

      Gary


      Johan Groth wrote:

      > Andrew Teo wrote:
      > >
      > > try this :
      > > $tmp =~ tr/a/ /;
      >
      > I see I need to be a bit more specific. The above would change the a's to spc
      > but what I want is to strip the string of all characters up to and including
      > the first underscore. Ie aaa_bbb_ccc would become bbb_ccc and
      > sometext_more_text would become more_text. Does anyone know to accomplish
      > this?
      >
      > /Johan
      >
      > --
      > Johan Groth (xghjn) ! Tel. mobil: 0703 - 24 25 27
      > Cell Network ! Kontoret: 054 - 14 25 27
      > johan.groth@... ! Bofors: 0586 - 820 14
      > johan.groth.cellnetwork@...
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

      --
      Gary Taylor

      World Wide Classified® . . . | . . . Computer-Essence |
      http://www.wwclass.com . . . | . . . http://www.Computer-Essence.com |

      PO Box 214
      San Luis Rey, CA 92068-0214
      (760) 754-8421
      garytayl@...

      ••••••••••••••••••••••••••••••••••••••••••••••••••
      Politicians' area of study - BovinialDefecatology
      http://www.BovinialDefecatology.com/
      ••••••••••••••••••••••••••••••••••••••••••••••••••
    • Gary Taylor
      oops. I noticed that a space was accidentally left after the second forward slash in my reply. If you want to remove the aaa_ , the space should be removed.
      Message 2 of 2 , May 7, 2001
      • 0 Attachment
        oops. I noticed that a space was accidentally left after the second forward slash
        in my reply. If you want to remove the aaa_ , the space should be removed.

        Gary



        Gary Taylor wrote:

        > $tmp =~ s/aaa_/ /g;
        > ## will remove every instance. This is untested, and if it doesn't remove the
        > underscore may need to be ## preceded by a backslash like so:
        > $tmp =~ s/aaa\_/ /g;
        >
        > HTH
        >
        > Gary
        >
        > Johan Groth wrote:
        >
        > > Andrew Teo wrote:
        > > >
        > > > try this :
        > > > $tmp =~ tr/a/ /;
        > >
        > > I see I need to be a bit more specific. The above would change the a's to spc
        > > but what I want is to strip the string of all characters up to and including
        > > the first underscore. Ie aaa_bbb_ccc would become bbb_ccc and
        > > sometext_more_text would become more_text. Does anyone know to accomplish
        > > this?
        > >
        > > /Johan
        > >
        > > --
        > > Johan Groth (xghjn) ! Tel. mobil: 0703 - 24 25 27
        > > Cell Network ! Kontoret: 054 - 14 25 27
        > > johan.groth@... ! Bofors: 0586 - 820 14
        > > johan.groth.cellnetwork@...
        > >
        > >
        > >
        > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        >
        > --
        > Gary Taylor
        >
        > World Wide Classified® . . . | . . . Computer-Essence |
        > http://www.wwclass.com . . . | . . . http://www.Computer-Essence.com |
        >
        > PO Box 214
        > San Luis Rey, CA 92068-0214
        > (760) 754-8421
        > garytayl@...
        >
        > ••••••••••••••••••••••••••••••••••••••••••••••••••
        > Politicians' area of study - BovinialDefecatology
        > http://www.BovinialDefecatology.com/
        > ••••••••••••••••••••••••••••••••••••••••••••••••••
        >
        >
        >
        > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

        --
        Gary Taylor

        World Wide Classified® . . . | . . . Computer-Essence |
        http://www.wwclass.com . . . | . . . http://www.Computer-Essence.com |

        PO Box 214
        San Luis Rey, CA 92068-0214
        (760) 754-8421
        garytayl@...

        ••••••••••••••••••••••••••••••••••••••••••••••••••
        Politicians' area of study - BovinialDefecatology
        http://www.BovinialDefecatology.com/
        ••••••••••••••••••••••••••••••••••••••••••••••••••
      Your message has been successfully submitted and would be delivered to recipients shortly.