Assuming that all you are trying to do is to delete everything at the start of a line up to and including that string, the first thing I would do is get rid of all the superfluous parts of the regex.
Does $NewRev ~~ s/ .* 'Release Notes <strong>V' // have the problem? ".*" means any number of characters, including zero; thus the "?" is superfluous. The parentheses simply capture the data that is matched, Since the string is constant, there is not much use capturing it, and I doubt you are using the captured value (available as $0). Kevin. On Sun, 24 Oct 2021 at 10:44, ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > 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 > > >