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

Re: [Clip] need help with regular expression please

Expand Messages
  • Jack Sprat
    Thank you very much! That did it. It s been a long time since I played with regex and Perl. Paul ... with
    Message 1 of 2 , Feb 8, 2004
    • 0 Attachment
      Thank you very much! That did it.
      It's been a long time since I played with regex and Perl.

      Paul

      --- In ntb-clips@yahoogroups.com, "Alec Burgess" <burale@a...> wrote:
      > Paul:
      >
      > If they are all at the beginning of a line this should do it:
      > Find: [^@]+
      > Replace: \*
      >
      > or
      >
      > Find: .*@
      > Replace: \*@
      >
      > Regards ... Alec
      > --
      >
      > ---- Original Message ----
      > From: "Jack Sprat" <jpl@v...>
      > To: <ntb-clips@yahoogroups.com>
      > Sent: Sunday, February 08, 2004 13:16
      > Subject: [gla: [Clip] need help with regular expression please
      >
      > > I have a list of userids in a file (MailwasherPro blacklist); each
      > > line has the format:
      > >
      > > 0wbfbbcsjhb7@c...
      > >
      > > where the userid before the @ sign can be variable in length.
      > >
      > > I wish to do a find/replace in the file, replacing the userids
      with
      > > an asterisk, ending up with:
      > >
      > > *@...
      > >
      > > Can someone please help with compose the regular expression to do
      > > this? Getting tired of hit and miss trying. :-(
      > >
      > > Paul
      > >
      > >
      > >
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
    Your message has been successfully submitted and would be delivered to recipients shortly.