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

regexp('xabyabbbz','/ab*/','o')regexp('a!','/((((((((((a))))))))))\041/')regexp('ABCC','/^abc$/i')regexp('ABC','/ab|cd/i')[abc]=regexp('XABYABBBZ','/ab*/i')piString="3.14"[a,b,c,piStringSplit]=regexp(piString,"/(\d+)\.(\d+)/")disp(piStringSplit(1))disp(piStringSplit(2))[a,b,c,d]=regexp('xabyabbbz','/ab(.*)b(.*)/')size(d)// get host name from URLmyURL="http://www.scilab.org/download/";[a,b,c,d]=regexp(myURL,'@^(?:http://)?([^/]+)@i')str='foobar: 2012';// Using named subpatterns[a,b,c,d]=regexp(str,'/(?P<name>\w+): (?P<digit>\d+)/')d(1)=="foobar"d(2)=="2012"