10 lines
324 B
Rexx
10 lines
324 B
Rexx
str = "<p>Paragraph 1</p><p>Paragraph 2</p>"
|
|
re1 = .RegularExpression~new("<p>?*</p>", "MINIMAL")
|
|
re1~match(str)
|
|
re2 = .RegularExpression~new("<p>?*</p>", "MAXIMAL")
|
|
re2~match(str)
|
|
say "re1 (minimal) matched" str~substr(1, re1~position)
|
|
say "re2 (maximal) matched" str~substr(1, re2~position)
|
|
EXIT
|
|
|
|
::requires "rxregexp.cls" |