Community

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

    UDL: Deal with string of numbers

    Help wanted · · · – – – · · ·
    number udl
    2
    4
    850
    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.
    • Jorge De Anda Salazar
      Jorge De Anda Salazar last edited by

      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
      • Jim Dailey
        Jim Dailey last edited by

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

        1 Reply Last reply Reply Quote 2
        • Jorge De Anda Salazar
          Jorge De Anda Salazar last edited by

          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
          • Jim Dailey
            Jim Dailey last edited by

            @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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors