• Login
Community
  • Login

Regular request { .* }

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 2.4k 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.
  • V
    Victor Fatal
    last edited by Victor Fatal Jan 24, 2017, 11:19 PM Jan 24, 2017, 11:17 PM

    Help formulate correctly search request to search all in function SkinMesh between {…}
    except other function ClientAnimationController, Lights…

    version
    extends “”

    ClientAnimationController
    {
    skeleton = “”
    }

    SkinMesh
    {
    skin = “”
    }

    Lights
    {
    }

    1 Reply Last reply Reply Quote 0
    • V
      Victor Fatal
      last edited by Jan 25, 2017, 10:54 AM

      SoundEvents.\n{.*?}

      1 Reply Last reply Reply Quote 0
      • V
        Victor Fatal
        last edited by Jan 25, 2017, 11:17 AM

        SoundEvents.\n\{.*?\}

        1 Reply Last reply Reply Quote 0
        • G
          guy038
          last edited by Jan 25, 2017, 7:18 PM

          Hello, Victor,

          I think that a possible solution would be :

          (?s)(?<=SkinMesh\r\n)\{.+?\}

          Notes :

          • This first part of the regex is called a look-behind. It’s a condition that must be true, in order to valid the overall regex. but it will not be part of the final match. So the regex engine looks for the string SkinMesh, followed by the two End of Line characters CR + LF.

          • If the string, above may be found, it, then, matches an opening brace character, followed by the shortest range of any character, even on several lines, till an ending brace character

          Best Regards,

          guy038

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