Community
    • Login

    UDL- Recognize Any 32 Characters Surrounded by Commas

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 156 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.
    • TM ST
      TM S
      last edited by

      Hello. Trying to define a new language. Here is an example line:

      [frame0]<tile>30,64802A40C8D094A040800A40C8909080,0F0F0516,0,8,1,Y

      I would like to have the 32 character entry (in bold here), be recognized. The 32 characters change depending on “reasons”, but are always numbers and letters {it’s a 32 character hexadecimal string).

      So, Is there a way to define “any 32 characters that is surrounded by commas”?

      Thanks for any help!

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @TM S
        last edited by

        @TM-S ,

        That is beyond the simple keyword matching of UDL alone, sorry.

        However, if you define everything else in UDL, you could use the EnhanceAnyLexer plugin to add foreground-color changes on any text that matches a regular expression, which could be \b[0-9A-F]{32}\b

        TM ST 1 Reply Last reply Reply Quote 3
        • TM ST
          TM S @PeterJones
          last edited by

          @PeterJones Thank for the fast response! I will give that a try.

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