root/NEWT0/trunk/sample/regex.newt
| Revision 1, 149 bytes (checked in by gnue, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!newt |
| 2 | |
| 3 | // protoREGEX sample code. |
| 4 | |
| 5 | Require("protoREGEX"); |
| 6 | |
| 7 | re := /([a-zA-Z]+)([0-9]*)/; |
| 8 | matchs := re:match("foo123"); |
| 9 | |
| 10 | matchs[2] & ";" & matchs[1]; |
Note: See TracBrowser
for help on using the browser.
