.lastIndexOf()
Table of contents
Description of the method
Description: | .lastIndexOf() method returns the last position of string or character from a string. The string or character to be searched for is given as parameter. If nothign is found "-1" will be returned. |
Available for: | string |
Parameters: | string |
Return type: | integer |
Example
Context: | H |
OCL: | self. |
Description: | The example rule executes |
The XML snippet below would pass this check.
<Id> IdContent </Id> |
The other snippet below however would not pass this check.
<Id>Id Content</Id> |
Attached you can find example schema and files which you can use for testing.