Community
    • Login

    Regular expression + latex

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    latexregex
    4 Posts 2 Posters 794 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.
    • jjulianorsJ
      jjulianors
      last edited by

      Hello people,

      I have a question about regular expression, I’m tryng without sucess

      I have this:

      \figure{text_1}{\trl{some text}}
      \figure{blaBla_text}{\trl{another text}}

      I need this:

      \figure{text_1}[\trl{some text}]
      \figure{blaBla_text}[\trl{another text}]

      Thanks in advance for any help …

      thanks a lot !

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @jjulianors
        last edited by Alan Kilborn

        @jjulianors

        I would be tempted to try:

        Find (?-is)(\\figure\{.+?\})\{(\\trl\{.+?\})\}
        Repl \1[\2]

        jjulianorsJ 1 Reply Last reply Reply Quote 2
        • jjulianorsJ
          jjulianors
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • jjulianorsJ
            jjulianors @Alan Kilborn
            last edited by

            @Alan-Kilborn
            That works… thanks a lot!

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