User Tools

Site Tools


en:instrx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:instrx [2016/08/12 21:16]
admin
en:instrx [2016/08/13 08:59]
admin
Line 2: Line 2:
 ==== Format ==== ==== Format ====
 **instrx** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] )\\ **instrx** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] )\\
-**instrx** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] , //start_expr// )+**instrx** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] , [[integerexpressions|start_expression]] )
  
 returns [[integerexpressions|integer_expression]] returns [[integerexpressions|integer_expression]]
Line 9: Line 9:
 Check to see if the text represented by the regular expression [[regularexpressions|regular_expression]] 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 [[stringexpressions|needle_string_expression]] occurs.  Otherwise, this function will return 0. Check to see if the text represented by the regular expression [[regularexpressions|regular_expression]] 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 [[stringexpressions|needle_string_expression]] 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 [[integerexpressions|start_expression]].  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.
  
 ==== Note ==== ==== Note ====
en/instrx.txt ยท Last modified: 2020/02/28 10:46 (external edit)