develooper Front page | perl.beginners | Postings from March 2023

Re: A Regular Expression Problem in Perl 5.28

Thread Previous | Thread Next
From:
Martin McCormick
Date:
March 28, 2023 21:01
Subject:
Re: A Regular Expression Problem in Perl 5.28
Message ID:
E1phGRC-0004hI-SY@wb5agz.lan
Uri Guttman <uri@perlhunter.com> writes:
> why are you escaping the {}?? those are meta chars that are needed to make
> that a 5+ range. just delete the backslashes on them and it will work.

	First, thank you but read on, please.
	I couldn't agree more.  That should do it but when I
don't escape them, I get:

Nested quantifiers in regex; marked by <-- HERE in m//^\d+{ <-- HERE 3,}// at ./regex line 10.

I thought it was odd at the time because old code snippets I have
here plus examples I read on line all show un escaped meta characters.

	Martin

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About