News for hackers. Stuff that matters.
Re:OnlyFans to block sexually explicit videos starting in Oc... by cryptonector on Thursday August 19, 2021 @05:07PM (#28239378)
TFA:

> OnlyFans is getting out of the pornography business.

HN:

  s/of the pornography //
Re:OnlyFans to block sexually explicit videos starting in Oc... by frutiger on Thursday August 19, 2021 @06:57PM (#28240369)
>TFA:

>> OnlyFans is getting out of the pornography business.

>HN:

> s/of the pornography //.

…is getting out business?

Re:OnlyFans to block sexually explicit videos starting in Oc... by qzw on Thursday August 19, 2021 @07:43PM (#28240706)
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.

-- Jamie Zawinski

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.
Re:OnlyFans to block sexually explicit videos starting in Oc... by majewsky on Friday August 20, 2021 @04:54AM (#28244069)
Not just sed. Also ed, which is where sed got it from.
Re:OnlyFans to block sexually explicit videos starting in Oc... by bzbarsky on Tuesday August 24, 2021 @06:53PM (#28295976)
Yes, indeed. :)
Re:OnlyFans to block sexually explicit videos starting in Oc... by quickthrowman on Thursday August 19, 2021 @07:08PM (#28240472)
Patreon’s 2020 annual net revenue is estimated at $80M. Last year onlyfans did $375M net revenue and 2021 is…was projected at $1.2B

Without porn, onlyfans will do maybe $100M in 2022. It’s the difference between a $1.5B valuation and a $20B valuation.

Re:OnlyFans to block sexually explicit videos starting in Oc... by jolmg on Thursday August 19, 2021 @07:40PM (#28240685)
I think they mean that it should be s/the pornography //, rather than s/of the pornography //, so it's "out of business."
Re:OnlyFans to block sexually explicit videos starting in Oc... by dwighttk on Thursday August 19, 2021 @08:50PM (#28241150)
But then you still have “getting”
Re:OnlyFans to block sexually explicit videos starting in Oc... by majewsky on Friday August 20, 2021 @04:55AM (#28244073)

  s/getting \(.* \)the pornography /going \1/
Happy now? :)
Re:OnlyFans to block sexually explicit videos starting in Oc... by cryptonector on Thursday August 19, 2021 @10:37PM (#28241855)
Ay, yes, I was, you know, just making an off-hand comment.
Re:OnlyFans to block sexually explicit videos starting in Oc... by IncRnd on Thursday August 19, 2021 @09:44PM (#28241482)
It would have been better to get a code review or to test before checking-in that incorrect code.