^start of line
.*any character (except for line terminators), repeated any number of times
hogethe literal text hoge (case sensitive) \.the literal . (4610 / 568 / 2E16)
comthe literal text com (case sensitive) ?repeats the group contents below at most once:
\/the literal / (4710 / 578 / 2F16)
spthe literal text sp (case sensitive) \/the literal / (4710 / 578 / 2F16)
indexthe literal text index (case sensitive) \.the literal . (4610 / 568 / 2E16)
htmlthe literal text html (case sensitive) \?the literal ? (6310 / 778 / 3F16)
?repeats the group contents below at most once:
.*any character (except for line terminators), repeated any number of times
&the literal & (3810 / 468 / 2616)
ref=camp_catthe literal text ref=camp_cat (case sensitive) ?repeats the group contents below at most once:
&the literal & (3810 / 468 / 2616)
.*any character (except for line terminators), repeated any number of times
$end of line
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string