• Login
Community
  • Login

find and replace help

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Shawn Thomas
    last edited by Feb 25, 2017, 10:34 PM

    I have about 1500 sets of coordinates that I need to modify. I have a list that looks like this:

    Z = -126.102 mm,
    Z = -126.182 mm,
    Z = -126.187 mm,
    Z = -126.202 mm,

    I would like to find them and replace them all with the same value

    Z = -126.000 mm,

    Very new user and short on time and struggling with the expression. Can also use a find from Z = to a specific column, all the values are lined up.

    Any help would be greatly appreciated.

    C 1 Reply Last reply Feb 26, 2017, 12:21 AM Reply Quote 0
    • C
      Claudia Frank @Shawn Thomas
      last edited by Feb 26, 2017, 12:21 AM

      @Shawn-Thomas

      what I get is that you only want to modify the decimal part, correct?
      If so, and if your data look exactly like you posted than

      find: \.\d+
      replace: .000
      

      . means you are looking for the literal dot followed by
      \d+ one or more digits (as much as possible)

      Of course you need to check the regular expression box in find repalce dialog.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 1
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors