Scilab Function

regexp - Match regular expressions in strings.

Calling Sequence

function [start,finish]=regexp(str,expr)

Parameters

Description

regexp idetifies the start and finish of each matching regular expression in a string. regexp requires that perl is installed and available through the path.

Unforturnately regexp.sci has not been adapted to work in an Windows/MSDOS environment, but this only requires minor modifications to the source code.

Examples

 str='bat cat can car coat court cut ct caoueaouat';
 pat = 'c[aeiou]+t';
 [s,f]=regexp(str,pat)
 [s,f]=regexp('regexp helps you relax','\w*x\w*')