Not part of the stdlib, but NPeg shoild be able to do this for you at compile time: import npeg static: let p = peg rule: rule <- "cd" * +Space * >Alpha * ":": echo $1 discard p.match("cd c:\blue\monkey\bike") Run
- pegs: match without guessing openarray size matkuki
- Re: pegs: match without guessing openarray size sky_khan
- Re: pegs: match without guessing openarray size matkuki
- Re: pegs: match without guessing openarray size matkuki
- Re: pegs: match without guessing openarray size sky_khan
- Re: pegs: match without guessing openarray ... matkuki
- Re: pegs: match without guessing openar... matkuki
- Re: pegs: match without guessing op... zevv