This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:instr [2016/08/12 21:10] admin |
en:instr [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
==== Format ==== | ==== Format ==== | ||
**instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] )\\ | **instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] )\\ | ||
- | **instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] , // | + | **instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] , [[integerexpressions|start_expression]] |
- | **instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] , // | + | **instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] , [[integerexpressions|start_expression]] |
returns [[integerexpressions|integer_expression]] | returns [[integerexpressions|integer_expression]] | ||
Line 10: | Line 10: | ||
Check to see if the string [[stringexpressions|needle_string_expression]] is contained in the string [[stringexpressions|haystack_string_expression]]. | Check to see if the string [[stringexpressions|needle_string_expression]] is contained in the string [[stringexpressions|haystack_string_expression]]. | ||
- | You may optionally specify a starting location for the search to begin // | + | You may optionally specify a starting location for the search to begin [[integerexpressions|start_expression]]. If the start is 1 or greater the search will begin from the specified character from the start. |
An optional [[booleanexpressions|boolean_expression]] may be used to specify that the search will treat upper and lower case letters the same. | An optional [[booleanexpressions|boolean_expression]] may be used to specify that the search will treat upper and lower case letters the same. |