Loadable Function: […] = pcregexp (…)

Perl-compatible regular expression matching.

Check your system’s pcre man page.

See also: regexp.

Demonstration 1

The following code

 [m, s1] = pcregexp("(a.*?(d))", "asd asd")

Produces the following output

m =

   1   3
   1   3
   3   3

s1 = asd

Package: strings