Community
    • Login

    Replace extended mode search function

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 466 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.
    • Mar HygM
      Mar Hyg
      last edited by

      I’ve checked everything posted, havent’t found what I’m looking for. I’m trying to format a dictionary, taken from an old pdf and processed through an OCR. now i’m trying to making some sense of it and I’ve got something like this:

      mechanic [-k-] adj mecánico/a
      media sb media, promedio
      medical
      adj
      médico medicamento
      sb
      medicamento, medicina (píldoras, etc.)
      medicina
      sb
      medicina (práctica de la)
      medico
      sb
      médico, doctor medie
      adj
      medio/a mediedie
      sb
      mediodía medietate

      until the end.

      So its

      \r\n[definition of previous] [next word]\r\n
      \r\n [word function] \r\n
      Definition of previous word] [next word]

      Now, the functions are few enough that I believe this could be automated like so

      search:
      \w\r\n adj \r\n
      replace with
      \r\n\w\r\n adj \r\n

      and repeating it a couple of times with sb, adj, vb, adv, etc. But that’s clearly not working, or else I wouldn’t be here.

      And now I’m aout of ideas :3 ¿Any help?

      1 Reply Last reply Reply Quote 0
      • guy038G
        guy038
        last edited by guy038

        Hello, @mar-hyg,

        Your post does not seem very clear regarding your goals ! I advice you to read these two posts, below, before replying again !

        https://community.notepad-plus-plus.org/topic/21965/please-read-this-before-posting

        https://community.notepad-plus-plus.org/topic/22022/faq-desk-template-for-search-replace-questions

        We certainly can help you, but we need further explanations to think about !

        Thanks for reading. See you later !

        guy038

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