• Login
Community
  • Login

UDL: Deal with string of numbers

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
numberudl
4 Posts 2 Posters 1.2k 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
    Jorge De Anda Salazar
    last edited by Sep 18, 2018, 11:42 AM

    Hello,

    I am trying to create an UDL and I am facing the following problem. I have a text like

    blablabla dd.dd.dd blablabla

    where I assume blablabla to be non important text and d to be a digit. The string dd.dd.dd represents three set of numbers. The first are the digits between the space and the dot, the second set the digits between the dots and the third set the digits after the dot and before the space.

    I would like to highlight the first set of digits in red, the second set in green, and the third set in grey. How could I achieve that. I have been reading in the documentation but I can not find myself a way to solve this.

    Thanks!

    1 Reply Last reply Reply Quote 0
    • J
      Jim Dailey
      last edited by Sep 18, 2018, 4:20 PM

      @Jorge-De-Anda-Salazar I do not think you can do this with UDL.

      1 Reply Last reply Reply Quote 2
      • J
        Jorge De Anda Salazar
        last edited by Sep 19, 2018, 1:11 PM

        Thanks for the reply @Jim-Dailey. You have save some of my time trying to figure out a way to do it.

        However, if the above is not possible Can I have the string dd.dd.dd display under a single color. Is that possible?

        1 Reply Last reply Reply Quote 0
        • J
          Jim Dailey
          last edited by Sep 25, 2018, 12:44 PM

          @Jorge-De-Anda-Salazar
          Sorry for the late reply; I’ve been on a quick vacation. :-)
          There is no regular expression support in UDL, so I am pretty sure this too is not possible.
          But, don’t take my word for it. You can do some cool things with UDL if you play around with it, but I don’t know how I would highlight dd.dd.dd.

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