regexp — find a substring that matches the regular expression string
[start]=regexp(input,pattern,[flag]) [start,end,match]=regexp(input,pattern,[flag]) [start,end]=regexp(input,pattern,[flag]) [start,end,match]=regexp(input,pattern,[flag])
a string.
a character string (under the rules of regular expression)
the starting index of each substring of str that matches the regular expression string pattern
the ending index of each substring of str that matches the regular expression string pattern
the text of each substring of str that matches
pattern
.
'o' for matching the pattern once .
The rules of regular expression are similar to perl language. For a quick start , see http://perldoc.perl.org/perlrequick.html. For a more in-depth tutorial on , see http://perldoc.perl.org/perlretut.html and for the reference page, see http://perldoc.perl.org/perlre.html
A difference with Perl is that matching a position but no character (for example, with /^/ or /(?=o)/) is a successful match in Perl but not in Scilab.