Template:Stringlist:RegexSplit syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (Automatically generated page update)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- This page was automatically generated and will be automatically
<!-- This page was automatically generated and will be automatically
     replaced, so any manual edits will be lost. You've been warned. -->
     replaced, so any manual edits will be lost. You've been warned. -->
<p class="syntax"><span class="squareb">[</span><span class="term">%number</span><span class="literal">=</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:[[RegexSplit (Stringlist function)|RegexSplit]]</span><span class="literal">(</span> <span class="term">inString</span><span class="comma">,</span> <span class="term">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">Options=</span> <span class="term">string</span><span class="squareb">]</span><span class="comma">,</span>                 -
<p class="syntax"><span class="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">sl</span><span class="literal">:RegexSplit</span><span class="literal">(</span> <span class="term" title="String">inString</span><span class="comma">,</span> <span class="term" title="String">regex</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span>                 -
                          <span class="squareb">[</span><span class="literal">Status=</span> <span class="term">nonObject</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal">Add=</span> <span class="term">regexSplitOutputOptions</span><span class="squareb">]</span><span class="literal">)</span></p>
                          <span class="squareb">[</span><span class="literal" title="%output">Status=</span> <span class="term" title="%output">%output</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="RegexSplitOutputOptions">Add=</span> <span class="term" title="RegexSplitOutputOptions">regexSplitOutputOptions</span><span class="squareb">]</span><span class="literal">)</span>
 
Throws [[InvalidRegex class|InvalidRegex]]</p>

Latest revision as of 15:22, 2 February 2013

[%number =] sl:RegexSplit( inString, regex, [Options= string], - [Status= %output], [Add= regexSplitOutputOptions]) Throws InvalidRegex