Skip to main content

charpattern

Constant charpattern 

Source
pub const charpattern: string;
Expand description

The pattern "[\0-\x7F\xC2-\xFD][\x80-\xBF]*", which matches exactly one UTF-8 byte sequence, assuming that the subject is a valid UTF-8 string.

§Examples

for c in ("héllo"):gmatch(utf8.charpattern) do
  io.write(c, " ")            --> h é l l o
end