Difference between revisions of "Erasesentencefromend"

From Theonomy Wiki
Line 1: Line 1:
 
{{#switch:{{{2|1}}}
 
{{#switch:{{{2|1}}}
|1={{#rmatch:{{{1{{#scripture:Deuteronomy 14:21}}|}}}|/^(.*?) \# capture everything up to the last sentence
+
|1={{#rmatch:{{{1{{#scripture:Deuteronomy 14:21}}|}}}|/^(.*?)
[^\.\;\?\!]+ \# Everything up to the sentence delimiter
+
[^\.\;\?\!]+
 
[\.\;\?\!]* \# Any number of sentence delimiters
 
[\.\;\?\!]* \# Any number of sentence delimiters
([^\.\;\?\!]*?) \# Anything after the sentence at the end, like HTML markup
+
([^\.\;\?\!]*?)  
$ \# anchors at the end of the input
+
$  
 
/sx|$1$2}}
 
/sx|$1$2}}
 
|2={{#rmatch:{{{1|}}}|/^(.*?)[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]*[^\.\;\?\!]*?$/s|$1|}}
 
|2={{#rmatch:{{{1|}}}|/^(.*?)[^\.\;\?\!]+[\.\;\?\!]+[^\.\;\?\!]+[\.\;\?\!]*[^\.\;\?\!]*?$/s|$1|}}

Revision as of 16:47, 22 July 2020