Re: Problem with repeating characters in regex
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Thu, 27 Sep 2007 06:35:01 -0700
Rob Dixon wrote:
Mike Martin wrote:
$line=~s/\!(^\![A-Z][a-z].+)/$1/gc;
$line =~ s/^!(![a-z].+)/$1/gi;
You are both using an anchored pattern with the /g option which makes no sense unless you are also using the /m option.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
.
- References:
- Problem with repeating characters in regex
- From: Mike Martin
- Re: Problem with repeating characters in regex
- From: Rob Dixon
- Problem with repeating characters in regex
- Prev by Date: Re: Displaying a Link on A Web PAge with image/png header.
- Next by Date: How to set environment variable
- Previous by thread: Re: Problem with repeating characters in regex
- Next by thread: Re: Problem with repeating characters in regex
- Index(es):
Relevant Pages
|