Difference between revisions of "Extractsentence"

From Theonomy Wiki
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#rsplit:{{{1|This is a test. ANd another test.}}}|/(?<=[\.\;\?\!])\s/|{{{2|0}}}}}
+
{{#switch:{{{2|1}}}
 +
|1={{#rmatch:{{{1|}}}|^([^\.\;\?\!]+[\.\;\?\!])|$1|{{{1}}}}}
 +
|2={{#rmatch:{{{1|}}}|^[^\.\;\?\!]+[\.\;\?\!]+([^\.\;\?\!]+[\.\;\?\!])|$1|{{{1}}}}}
 +
|3={{#rmatch:{{{1|}}}|^[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]+([^\.\;\?\!]+[\.\;\?\!])|$1|{{{1}}}}}
 +
|4={{#rmatch:{{{1|}}}|^[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]+([^\.\;\?\!]+[\.\;\?\!])|$1|{{{1}}}}}
 +
|5={{#rmatch:{{{1|}}}|^[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]+([^\.\;\?\!]+[\.\;\?\!])|$1|{{{1}}}}}
 +
}}

Latest revision as of 15:59, 22 July 2020

{{{1}}}