Difference between revisions of "Extractsentence"

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

Revision as of 13:18, 22 July 2020

nomatch