Returns the first substring that was matched by the regular expression. If the expression does not match anything the empty string “” will be returned. You may also specify an optional starting location for the search to begin start_expression.
String indices begin at 1.
print midx("HeLLo", "[Ll]o") print midx("Hello, Kitti","[Ii]",10)
By default the nature of regular expressions is “greedy”. This behaviour can be changed using the RegexMinimal statement.
|184.108.40.206||New To Version|
|220.127.116.11||Added start position < 0|