regexp find a substring that matches the regular expression string Calling Sequence [start] = regexp(input, pattern, [flag]) [start, final] = regexp(input, pattern, [flag]) [start, final, match] = regexp(input, pattern, [flag]) [start, final, match, foundString] = regexp(input, pattern, [flag]) Arguments input a string. pattern a character string (under the rules of regular expression). start the starting index of each substring of input that matches the regular expression string pattern. final the ending index of each substring of input that matches the regular expression string pattern. match the text of each substring of input that matches pattern. foundString the captured parenthesized subpatterns. [flag] 'o' for matching the pattern once. Description 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. Examples \w+): (?P\d+)/') d(1)=="foobar" d(2)=="2012" ]]> See Also strindex History 5.4.0 A new output argument, foundString, has been added to retrieve subpatterns matches.