If the Substring is not found, a -1 is returned.
As an example assume you want to get a Substring.
There are five capturing Substrings, but only one is ever set after a.
There are five capturing Substrings, but only one is ever set after a match.
As the subexpression is bound to Substring"n" in this case, the"n" is inserted into this group.
As the subexpression is bound to the Substring"n" in this case, the"n" is inserted into this group.
Enabled by default, the Fast mode- the documentation says-
is“extremely fast,” as no Substrings are searched in this case.
You do have to be a little careful with find, index, and in though, as they are Substring searches.
If you were looping through the number of string characters using a'for' loop,
you would need mb Substring to take a specific subsstring inside.