Community
    • Login

    find and replace help

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.7k Views 2 Watching
    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.
    • Shawn ThomasS Offline
      Shawn Thomas
      last edited by

      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.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Shawn Thomas
        last edited by

        @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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors