Hacker News new | ask | show | jobs
by kazinator 4140 days ago
Yes, regexes can have other syntactic representations, like:

    (compound "$" (1+ :digit) "." :digit :digit)
Run:

    $ txr -p "(regex-compile '(compound \"$\" (1+ :digit) \".\" :digit :digit))"
    #/$\d+\.\d\d/