|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| str.pos.ex(source, stringToFind, caseSensitive, startAt, ignoreComma, ignoreApostrophe, ignoreParenthesis, ignoreAccolade, ignoreBracket, ignoreTags) |
Parameters
| STRING | source | Source string.
| | STRING | stringToFind | String to find in the source string.
| | BOOL | caseSensitive | Optional. Set to true if the search must be case sensitive. Default is false.
| | INT | startAt | Optional. Position to start the search.
| | BOOL | ignoreComma | Optional. Default is false. Set to true to ignore the part of the strings between comma.
| | BOOL | ignoreApostrophe | Optional. Default is false. Set to true to ignore the part of the strings between apostrophe.
| | BOOL | ignoreParenthesis | Optional. Default is false. Set to true to ignore the part of the strings between parenthesis.
| | BOOL | ignoreAccolade | Optional. Default is false. Set to true to ignore the part of the strings between accolades.
| | BOOL | ignoreBracket | Optional. Default is false. Set to true to ignore the part of the strings between brackets.
| | BOOL | ignoreTags | Optional. Default is false. Set to true to ignore the part of the strings between tags. |
Return value
| Position of the first occurrence found, or NULL if not found. |
Description
This function performs a search of a string in another string and returns the position of the first occurrence.
It is possible to exclude from the search the parts of the string that are between parenthesis, comma, apostrophe, etc. |
|
|
|