Re:OnlyFans to block sexually explicit videos starting in Oc...
by bluepnume on Thursday August 19, 2021 @07:58PM
(#28240803)
I didn't spot any regexes here.
Re:OnlyFans to block sexually explicit videos starting in Oc...
by qzw on Thursday August 19, 2021 @08:08PM
(#28240866)
Matching an exact string is also a valid regex, and I think the GP's simple attempt to use the substitution syntax illustrates JWZ's point even better than a more complex expression. There are so many ways of screwing it up that even a simple joke contained a bug.
Re:OnlyFans to block sexually explicit videos starting in Oc...
by Banana699 on Thursday August 19, 2021 @08:10PM
(#28240881)
The notation s/<regex1>/<regex2> is perl for "replace every instance matching regex1 by regex2. Literal strings are regexes that match only themselves.
Re:OnlyFans to block sexually explicit videos starting in Oc...
by bzbarsky on Friday August 20, 2021 @01:43AM
(#28243036)
Not just perl. Also sed, which is likely where perl got it from.
-- Jamie Zawinski