I have a string. The end is different, such as
index.php?list=UL&more=1. The one thing I'm looking for is
How can I match it, whether it's in the middle of the string or it's at the end? So far I've got
[&|?]list=.*?([&|$]), but the
([&|$]) part doesn't actually work; I'm trying to use that to match either
& or the end of the string, but the end of the string part doesn't work, so this pattern matches the second example but not the first.