Difference between revisions of "Error Messages/40864"

(Created page with '= Error Message Examples = The regular expression <<pattern>> to FindInText does not contain the named <<subPattern>> "Choice". = Cause = The subpattern name passed as the '…')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
The regular expression <<pattern>> to FindInText does not contain
+
== Error message examples ==
the named <<subPattern>> "Choice".
 
  
= Cause =
+
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 +
The regular expression «pattern» to FindInText does not contain
 +
the named «subPattern» "Choice".
 +
</pre>
  
The subpattern name passed as the '''subPattern''' parameter to the [[FindInText]] function, was not found in the passed pattern passed to the function. You may have made a typo while naming the subpattern or specifying the '''subPattern''' parameter.
+
== Cause ==
 +
The subpattern name passed as the «subPattern» parameter to the [[FindInText]] function, was not found in the passed pattern passed to the function. You may have made a typo while naming the subpattern or specifying the «subPattern» parameter.
  
 
'''Naming a subpattern:''' <br>
 
'''Naming a subpattern:''' <br>
Line 13: Line 16:
 
Example of passing '''subPattern''' to [[FindInText]]:
 
Example of passing '''subPattern''' to [[FindInText]]:
  
<code>
+
:<code> FindInText('a*(?<bcd>b+(c+)(d*))','zyabdaabbcccfd', re: 1, subpattern: ['bcd', 0, 1, 2, 3]) &rarr;</code>
FindInText('a*(?<bcd>b+(c+)(d*))','zyabdaabbcccfd', re:1, subpattern:['bcd',0,1,2,3])  
+
::<code> [8, 6, 8, 10, 13]</code>
Returns: [8,6,8,10,13]
 
</code>
 
  
= Remedies =
+
== Remedies ==
  
Correct the name of the subpattern passed as the '''subPattern''' parameter to the [[FindInText]] function to a subpattern name present in the pattern being passed.
+
Correct the name of the subpattern passed as the «subPattern» parameter to the [[FindInText]] function to a subpattern name present in the pattern being passed.
  
<br><comments />
+
==See Also==
 +
* [[FindInText]]
 +
* [[Regular Expressions]]
 +
* [[Text functions]]
 +
* [[Function calls and parameters]]

Latest revision as of 19:34, 5 April 2016


Error message examples

 The regular expression «pattern» to FindInText does not contain
 the named «subPattern» "Choice".

Cause

The subpattern name passed as the «subPattern» parameter to the FindInText function, was not found in the passed pattern passed to the function. You may have made a typo while naming the subpattern or specifying the «subPattern» parameter.

Naming a subpattern:
You can name a subpattern by following the opening parenthesis of the subpattern by a question mark and then the name between two angle brackets.

Example of passing subPattern to FindInText:

FindInText('a*(?<bcd>b+(c+)(d*))','zyabdaabbcccfd', re: 1, subpattern: ['bcd', 0, 1, 2, 3]) →
[8, 6, 8, 10, 13]

Remedies

Correct the name of the subpattern passed as the «subPattern» parameter to the FindInText function to a subpattern name present in the pattern being passed.

See Also

Comments


You are not allowed to post comments.