octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regexp test cases


From: Ben Abbott
Subject: Re: regexp test cases
Date: Wed, 26 Oct 2011 19:22:47 -0400

On Oct 26, 2011, at 7:14 PM, Rik wrote:

> 10/26/11
> 
> All,
> 
> I'm trying to fix bugs #34101 and #33258 and I'd like to know how Matlab
> behaves on a corner case of a null search pattern.  Can someone test these
> two code snippets.
> 
> Test case #1
> [s, e] = regexp ('abc', '\s*')
> 
> Test case #2
> regexprep ('abc', '\s*', 'X')
> 
> --Rik

 [s, e] = regexp ('abc', '\s*')

s =

     []


e =

     []

regexprep ('abc', '\s*', 'X')

ans =

abc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]