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

5911Re: [edit+] About Full RegEx Supported Replace and More!

Expand Messages
  • joon_ro
    May 4, 2008
      Wow. What a fast reply. Thank you so much for your effort. I think
      your script will be very useful for me :)

      --- In editplus@yahoogroups.com, "Mark Kahn" <cwolves@...> wrote:
      >
      > if you put ^ you're saying "start at the beginning of a line" so a
      line
      > break might be included...
      >
      > this may be another bug in my script, I wrote it fairly quickly :-)
      >
      > again, will look at it tomorrow.
      >
      > thanks,
      > -Mark
      >
      > On Sun, May 4, 2008 at 11:21 PM, joon_ro <wildrogal@...> wrote:
      >
      > > I think I have found a way to put newline .. I used this
      > >
      > > /^(\w+)(\r\n)/gi
      > > $1$2$2
      > > success
      > > successs
      > > successss
      > >
      > > The output is:
      > >
      > > success
      > >
      > > successs
      > > successss
      > >
      > > So still there is a problem with ^. I don't know why, but if I'm
      > > using ^, only the first line is regexed. If I try the following:
      > >
      > > /(\w+)(\r\n)/gi
      > > $1$2$2
      > > success
      > > successs
      > > successss
      > >
      > > so without ^, then the output is:
      > >
      > > success
      > >
      > > successs
      > >
      > > successss
      > >
      > > So it works. My understanding is, if I put ^, then every line's
      first
      > > character will be evaluated.
      > >
      > > Thanks,
      > >
      > > Joon.
      > >
      > >
      > >
      >
      >
      > [Non-text portions of this message have been removed]
      >
    • Show all 7 messages in this topic