RosettaCodeData/Task/Conditional-structures/TXR/conditional-structures-3.txr

9 lines
221 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
@# match a line which contains some piece of text x
@# after the rightmost occurence of : such that the same piece
@# of text also occurs at the start of the line preceded by -->
@(all)
@*junk:@x
@(and)
-->@x@/.*/
@(end)