Difference between revisions of "Erasesentence"
From Theonomy Wiki
(Created page with "{{#switch:{{{2|1}}} |1={{#rmatch:{{{1|}}}|/^[^\.\;\?\!]+[\.\;\?\!](.*)/s|$1}} |2={{#rmatch:{{{1|}}}|/^[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1|}} |3={{#rmatch:{{{...") |
(account for additional span) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#switch:{{{2|1}}} | + | <noinclude>[[:Thread:Talk:Erasesentence/How_to_use_this_template|How to use this template]]</noinclude>{{#switch:{{{2|1}}} |
− | |1={{#rmatch:{{{1|}}}|/^[^\.\;\?\!]+[\.\;\?\!](.*)/s|$1}} | + | |1={{#rmatch:{{{1|}}}|/^(<span[^>]*>)?(<span[^>]*>\d+</span>)?( *<span[^>]*>)?[^\.\;\?\!]+[\.\;\?\!](.*)/s|$1$2$3{{{3|}}}$4|}} |
− | |2={{#rmatch:{{{1|}}}|/^[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1|}} | + | |2={{#rmatch:{{{1|}}}|/^(<span[^>]*>)?(<span[^>]*>\d+</span>)?( *<span[^>]*>)?[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1$2$3{{{3|}}}$4|}} |
− | |3={{#rmatch:{{{1|}}}|/^[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1|}} | + | |3={{#rmatch:{{{1|}}}|/^(<span[^>]*>)?(<span[^>]*>\d+</span>)?( *<span[^>]*>)?[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1$2$3{{{3|}}}$4|}} |
− | |4={{#rmatch:{{{1|}}}|/^[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1|}} | + | |4={{#rmatch:{{{1|}}}|/^(<span[^>]*>)?(<span[^>]*>\d+</span>)?( *<span[^>]*>)?[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1$2$3{{{3|}}}$4|}} |
− | |5={{#rmatch:{{{1|}}}|/^[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1|}} | + | |5={{#rmatch:{{{1|}}}|/^(<span[^>]*>)?(<span[^>]*>\d+</span>)?( *<span[^>]*>)?[^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!][^\.\;\?\!]+[\.\;\?\!](.*)/s|$1$2$3{{{3|}}}$4|}} |
}} | }} |