When messprocessed using LOAD/MARKUP, you get this (and I formatted + commented on the types):
[
; string!
"^/"
; tag! string! tag!
<td> "Bob Sockaway" </td>
; string!
"^/"
; tag! tag!
; string!
; tag! tag!
<td> <a href=mailto:bsockaway@example.com>
"bsockaway@example.com"
</a> </td>
; (Note: you didn't put the anchor href in quotes above...)
; string!
"^/"
; tag! string! tag!
<td> "9999" </td>
; string!
"^/"
]
[<td> string! </td>], [<td> tag! string! tag! </td>]. , , . , TD , :
rules: [
(td-count: 0)
some [
; if we see an open TD tag, increment a counter
<td> (++ td-count)
|
; if we see a close TD tag, decrement a counter
</td> (-- td-count)
|
; capture parse position in s if we find a string
; and if counter is > 0 then print the first element at
; the parse position (e.g. the string we just found)
s: string! (if td-count > 0 [print s/1])
|
; if we find any non-TD tags, match them so the
; parser will continue along but don't run any code
tag!
]
]
, :
Bob Sockaway
bsockaway@example.com
9999
, , ( ). " ", , , Rebol 3. , . .
?