Community
    • Login

    Issue with making this (^.*\\.dxy$)|

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 541 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.
    • Juan FranciscoJ Offline
      Juan Francisco
      last edited by

      Hi Everyone,
      Need your help. This is what i am trying to accomplish. I have this data that looks like this .dxy and need it look like (^.\.dxy$)| So my problem is the $)| will not come through i can make the (^.\ come through find with using the Edit>Column Editor. But not the end of it. Even if i use column Editor it does not work because not all the data are 3 characters. Some are 4 some are 3 or 4. I try Search>Replace and it will enter $ but not the closing bracket. Any advice how to overcome this. I am new to this so i am learning.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Juan Francisco
        last edited by

        @juan-francisco ,

        If I understand correctly, you have some things like .dxy in a column, not all the same width, maybe with something coming after it, and you want to convert that to (^.*\\.dxy$)|

        it looks like you are building up regex syntax based on file extensions; assuming then that you know regex, I am surprised you didn’t immediately switch to regex mode in Notepad++'s search-and-replace and accomplish it that way.

        Assuming you have data like:

        .dxx something else
        .1234 more text
        .12 more text
        

        then
        FIND = (\.\S+)(?=\s)
        REPLACE = \(^.*\\\\$1\$\)|
        MODE = regular expression

        (^.*\\.dxx$)| something else
        (^.*\\.1234$)| more text
        (^.*\\.12$)| more text
        
        1 Reply Last reply Reply Quote 1
        • Juan FranciscoJ Offline
          Juan Francisco
          last edited by Juan Francisco

          yes, I am building up regex syntax. As i noted i am learning it. I am new to it. i am going to test it now. That’s where i was trying to accomplish it but i kept failing miserably on the last part of it $)| I could not make it stick on the end of the line.

          1 Reply Last reply Reply Quote 0
          • Juan FranciscoJ Offline
            Juan Francisco
            last edited by Juan Francisco

            This is what I have my couple ones from many more. Thank you. Now i know something. Still learning regular expression. And knowing what each means.

            92dfc47b-10df-4feb-908b-8a781b625997-image.png

            1 Reply Last reply Reply Quote 0

            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