source:
NEWT0/trunk/sample/regex.newt
@
1
| Revision 1, 149 bytes checked in by gnue, 7 years ago (diff) |
|---|
| 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 repository browser.
