version 0.8.10
This commit is contained in:
parent
53cd61546d
commit
765366c1f3
58 changed files with 768 additions and 30834 deletions
|
|
@ -2,16 +2,16 @@
|
|||
# which is based on the PCRE library
|
||||
|
||||
import
|
||||
regexprs
|
||||
|
||||
if "keyA = valueA" =~ r"\s*(\w+)\s*\=\s*(\w+)":
|
||||
write(stdout, "key: ", matches[1])
|
||||
elif "# comment!" =~ r"\s*(\#.*)":
|
||||
echo("comment: ", matches[1])
|
||||
else:
|
||||
echo("Bug!")
|
||||
re
|
||||
|
||||
if "Username".match("[A-Za-z]+"):
|
||||
if "keyA = valueA" =~ re"\s*(\w+)\s*\=\s*(\w+)":
|
||||
write(stdout, "key: ", matches[0])
|
||||
elif "# comment!" =~ re"\s*(\#.*)":
|
||||
echo("comment: ", matches[0])
|
||||
else:
|
||||
echo("Bug!")
|
||||
|
||||
if "Username".match(re"[A-Za-z]+"):
|
||||
echo("Yes!")
|
||||
else:
|
||||
echo("Bug!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue