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

3230Re: [edit+] Regular expressions question

Expand Messages
  • Aleem Juma
    Dec 1, 2004
    • 0 Attachment
      probably better to use

      ([^:]*):

      matches any non-colon characters then a colon
      prefix this with ^ to ensure it starts at the beginning of a line if necessary.

      Aleem


      On Wed, 1 Dec 2004 18:26:44 -0600, John Morse <john_morse@...> wrote:
      >
      > Will this do what you are wanting?
      > (.*):
      > that will match everything up to the colon.
      >
      > Wednesday, December 1, 2004, 4:46:30 PM, you wrote:
      >
      > e> I want to search & replace from the start of a line to a character,
      > e> say a colon. If the line contains, say, '00005 - abcde: fghij', how
      > e> do I regex the phrase prior to the colon character?
      >
      > e> thanks in advance,
      > e> Mike
      >
      >
      >
      >
      >
      > http://www.editplus.com
      > http://groups.yahoo.com/group/editplus
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
    • Show all 7 messages in this topic