Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
en:instrx [2016/08/04 09:23] admin |
en:instrx [2016/08/12 21:09] admin |
===== Instrx (Function) ===== | ===== Instrx (Function) ===== |
==== Format ==== | ==== Format ==== |
**instrx** ( //haystack_expr// , //regex_expr// )\\ | **instrx** ( [[stringexpressions|haystack_string_expression]] , //regex_expr// )\\ |
**instrx** ( //haystack_expr// , //regex_expr// , //start_expr// ) | **instrx** ( [[stringexpressions|haystack_string_expression]] , //regex_expr// , //start_expr// ) |
| |
returns //positive_integer_expr// | returns [[integerexpressions|integer_expression]] |
| |
==== Description ==== | ==== Description ==== |
Check to see if the text represented by the regular expression //regex_expr// is contained in the string //haystack_expr//. If it is, then this function will return the index of starting character of the first place where //needle_expr// occurs. Otherwise, this function will return 0. | Check to see if the text represented by the regular expression //regex_expr// is contained in the string [[stringexpressions|haystack_string_expression]]. If it is, then this function will return the index of starting character of the first place where //needle_expr// occurs. Otherwise, this function will return 0. |
| |
You may optionally specify a starting location for the search to begin //start_expr//. If the start is 1 or greater the search will begin from the specified character from the start. If the start is < 0 then the search will begin from the nth character from the end. The search will ALWAYS look forward. | You may optionally specify a starting location for the search to begin //start_expr//. If the start is 1 or greater the search will begin from the specified character from the start. If the start is < 0 then the search will begin from the nth character from the end. The search will ALWAYS look forward. |