Difference between revisions of "Error Messages/40863"

Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
Unrecognized name passed to the «subPattern» parameter of [[FindInText]]: %1%
+
== Error message examples ==
  
= Cause =
+
:<code>''Unrecognized name passed to the «subPattern» parameter of FindInText: %1%''</code>
  
The subpattern name passed as the '''subPattern''' parameter to the [[FindInText]] function was not recognized.
+
== Cause ==
 +
 
 +
The subpattern name passed as the «subPattern» parameter to the [[FindInText]] function was not recognized.
  
 
'''Naming a subpattern:''' <br>
 
'''Naming a subpattern:''' <br>
 
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.
 
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]]:
+
Example of passing «subPattern» to [[FindInText]]:
  
<code>
+
:<code>FindInText('a*(?<bcd>b+(c+)(d*))','zyabdaabbcccfd', re:1, subpattern:['bcd',0,1,2,3]) </code>
FindInText('a*(?<bcd>b+(c+)(d*))','zyabdaabbcccfd', re:1, subpattern:['bcd',0,1,2,3])  
+
:<code>Returns: [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]]
 +
* [[Text functions]]
 +
* [[Regular Expressions]]
 +
* [[Function calls and parameters]]

Revision as of 19:20, 5 April 2016


Error message examples

Unrecognized name passed to the «subPattern» parameter of FindInText: %1%

Cause

The subpattern name passed as the «subPattern» parameter to the FindInText function was not recognized.

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])
Returns: [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.