• Login
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.
  • J
    jjulianors
    last edited by Apr 2, 2019, 7:06 PM

    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 !

    A 1 Reply Last reply Apr 2, 2019, 7:15 PM Reply Quote 0
    • A
      Alan Kilborn @jjulianors
      last edited by Alan Kilborn Apr 2, 2019, 7:15 PM Apr 2, 2019, 7:15 PM

      @jjulianors

      I would be tempted to try:

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

      J 1 Reply Last reply Apr 3, 2019, 11:30 AM Reply Quote 2
      • J
        jjulianors
        last edited by Apr 2, 2019, 7:32 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • J
          jjulianors @Alan Kilborn
          last edited by Apr 3, 2019, 11:30 AM

          @Alan-Kilborn
          That works… thanks a lot!

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