stdlib : scanner

Scan a string for matches.
end?   new   pos   scan  

end?

scanner.end?

Check if the scanner has reached the end of the string.

new

scanner.new string

Create a new scanner for the given string.

pos

scanner.pos

Returns the current position in the string.

scan

scanner.scan regex
scanner.scan string

Scan the string for the next match.

Fork me on GitHub