Difference between revisions of "Extractsentence"

From Theonomy Wiki
Line 1: Line 1:
{{#rsplit:{{{1|This is a test. ANd another test.}}}|/(?<=[\.\;\?\!])\s/|{{{2|0}}}}}
+
{{#switch:{{{2|1}}}
 +
|1={{#rmatch:{{{1|This is a test. ANd another test.}}}|^([^\.\;\?\!]+|^[^\.\;\?\!])|$1|nomatch}}
 +
|2={{#rmatch:{{{1|This is a test. ANd another test.}}}|^([^\.\;\?\!]+|^[^\.\;\?\!][^\.\;\?\!]+|^[^\.\;\?\!])|$1|}}
 +
}}

Revision as of 04:50, 22 July 2020