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

6956Re: [edit+] I need help to replace

Expand Messages
  • DZ-Jay
    Aug 27, 2012
      Doug,

      Sorry, I forgot the space. The first parenthesis grouping is not needed:


      Find: [0-9]+ *(nickname[0-9]+)
      Replace: \1

      You also do not want the (.*) at the beginning unless you want to get rid of whatever comes before the number prefix.

      dZ.

      On Aug 26, 2012, at 20:49, Doug Fortnam wrote:

      > I was playing around with this and could not get dZ's solution to work, but
      > this worked:
      >
      > Find: (.*)[0-9] +(nickname[0-9]+)
      > Replace: \2
      >
      > Doug
      >
      >
      > -----Original Message-----
      > From: editplus@yahoogroups.com [mailto:editplus@yahoogroups.com] On Behalf
      > Of DZ-Jay
      > Sent: Sunday, August 26, 2012 8:18 PM
      > To: editplus@yahoogroups.com
      > Subject: Re: [edit+] I need help to replace
      >
      > Hello:
      >
      > You can try something like this (without the quotation marks):
      >
      > Find: "[0-9]+(nickname[0-9]+)"
      > Replace: "\1"
      >
      > dZ.
      >
      > On Aug 26, 2012, at 17:35, LiveQueens wrote:
      >
      >> hello I need to replace
      >>
      >> 1 nickname2
      >> 2 nickname33
      >> 3 nickname234
      >> 4 nickname21
      >> ..(365355 nickname54
      >>
      >> output
      >>
      >> nickname2
      >> nickname33
      >> nickname234
      >> nickname21
      >> nickname54
      >>
      >> what is the expression i need to use ?
      >>
      >> thank you
      >>
      >>
      >
      >
      >
      > ------------------------------------
      >
      > http://www.editplus.comYahoo! Groups Links
      >
      >
      >
      >
    • Show all 12 messages in this topic