JanetDocsPlaygroundI'm feeling luckyGitHub sign in

peg/find



    cfunction

    (peg/find peg text &opt start & args)

    Find first index where the peg matches in text. Returns an integer, 
    or nil if not found.


1 exampleSign in to add an example
Loading...
(peg/find ':d "Battery temperature: 40 °C")
# => 21 index of the first number
pepePlayground