This shows you the differences between two versions of the page.
en:midx [2017/09/07 16:14] junior-root [Description] |
en:midx [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== MidX (Function) ===== | ||
- | ==== Format ==== | ||
- | **midx** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] )\\ | ||
- | **midx** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] , [[integerexpressions|start_expression]] ) | ||
- | returns [[stringexpressions|string_expression]] | ||
- | |||
- | ==== Description ==== | ||
- | Returns the first substring that was matched by the regular expression. If the expression does not match anything the empty string "" | ||
- | ==== Note ==== | ||
- | String indices begin at 1. | ||
- | ==== Example ==== | ||
- | < | ||
- | print midx(" | ||
- | print midx(" | ||
- | </ | ||
- | will display | ||
- | < | ||
- | Lo | ||
- | i | ||
- | </ | ||
- | |||
- | ==== Notes ==== | ||
- | By default the nature of regular expressions is " | ||
- | |||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |1.1.2.7|New To Version| | ||
- | |1.99.99.53|Added start position < 0| |