You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-user@jakarta.apache.org by Jon Stevens <jo...@latchkey.com> on 2000/05/26 20:16:27 UTC

Re: Perl "/s" equivalent

on 5/25/2000 11:25 AM, Larry Riedel at larry@riedel.org wrote:

> 
>> From my cursory perusal of the org.apache.regexp package,
> it does not seem to me like there is an equivalent to the
> Perl "/s" modifier, called the "REG_DOT_NEWLINE" flag in
> the gnu.regexp package, which allows "." to match a newline.
> 
> Am I correct that the equivalent to this functionality is not
> present in the current org.apache.regexp package, and if it is
> not, does it seem like a potentially useful enhancement?
> 
> 
> Thanks.
> 
> 
> Larry

there is a \s (not /s) which is defined to match a whitespace character
which I would imagine includes a newline.

-jon