develooper Front page | perl.perl6.users | Postings from October 2021

I need a better regex with a literal in it

Thread Next
From:
ToddAndMargo via perl6-users
Date:
October 23, 2021 23:43
Subject:
I need a better regex with a literal in it
Message ID:
0c32c4ec-d387-db72-783a-d2d627c7fbd4@zoho.com
Hi All,

Wish I had a Q[;;;] expression inside a regex, but I don't

This is my notes on how to do a regex with a special
characters in it:

      Regex with literals in it:
         $JsonAddr ~~ s| (';') .* ||;

It "usually" works.


Unfortunately this one hangs my program (I am slicing
up a web page):

$NewRev ~~ s/ .*? ('Release Notes <strong>V') //;

I need a better way of doing the above.

Many thanks,
-T



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