Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
There is a good solution, make sensitive people type in their own personal list of bad words. If enough sites make them do that, after a while laziness will crush any sense of "bad-word-ness" that exists in society.

On a more serious note, you likely wanted "\b" rather than "\s" at the beginning and no \s at the end either. Your way used on "go f**k yourself you f**ker" yields "go[censored]yourself you f**ker", which isn't likely to be the result you want.

Worse, people like me will delight in finding new variations that get by your current filters. Like pr0n and fsck and "fock cucker" or even "Kcuf!". L33t speak became a real benefit to society when it helped AOLers get around useless filters.

Oh yeah, I won't even get into the problem of regex dealing with the difference between embedded sequences vs. prefixes and suffixes and grammatical declension. "Skys[censored]per".

Filtering is a Tar-Baby. It looks easy to beat-up but every attack you make just gets you in deeper. And, now that I've made that analogy, I might start calling you Brer-lemming just to be mean. =)

Finally; If you want to see cussing, start censoring people.

--
$you = new YOU;
honk() if $you->love(perl)


In reply to Re: Re: Re: Language Filter by extremely
in thread Language Filter by elusion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found