KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Why regular expression doesn’t work with bracket?

  • Why regular expression doesn’t work with bracket?

    Posted by vivo on December 13, 2022 at 12:00 am

    I have below codes. Why the regular expression doesn’t work with {2}? The last 2 lines should be 1b instead. How to make it work? Thanks.

     

    "42" like "[0-9][0-9]"; // i.e. 1b
    "42" like "[0-9]{2}"; // i.e. 0b 
    "42" like "[0-9]{2,2}"; // i.e. 0b

     

    vivo replied 9 months, 2 weeks ago 3 Members · 2 Replies
  • 2 Replies

Log in to reply.