Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 275 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.
    • Juan FranciscoJ
      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
        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
          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
            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors