Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Regular expression + latex

    Help wanted · · · – – – · · ·
    latex regular express
    2
    4
    576
    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.
    • jjulianors
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @jjulianors last edited by Alan Kilborn

        @jjulianors

        I would be tempted to try:

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

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

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

            @Alan-Kilborn
            That works… thanks a lot!

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors