String matching: Difference between revisions
Content added Content deleted
m (→{{header|Tailspin}}: syntax update) |
|||
Line 3,445: | Line 3,445: | ||
composer index@{s:} |
composer index@{s:} |
||
@index: 0; |
@index: 0; |
||
[<match>* -> (@index: $@index + $; $@index!)] (<'.*'>) |
[<match>* -> \(@index: $@index + $; $@index!\)] (<'.*'>) |
||
rule match: (def pos: [<~'$s;'>? ...] -> $::length + 1; <'(?=$s;).'>) $pos |
rule match: (def pos: [<~'$s;'>? ...] -> $::length + 1; <'(?=$s;).'>) $pos |
||
end index |
end index |