Updated specific locations to be searchable, take a look at Las Vegas as an example.

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Does automoderator not recognize \b (word boundaries) or am I using it wrong?
Post Body

I've been learning a lot of regex as I learn to code the automoderator, and by now have made dozens of working pieces of code. Hooray for me!

...But I notice that when I put terms inside word boundaries (to avoid having them caught as part of a longer word), it seems to fail to detect them.

For example, I have a 'mark as NSFW' action that checks for sexual words and automatically marks the post as NSFW. But because many short words (like "rape") can lead to false positives (like "grape" or "trapezoid"), I add word boundaries to them, like so (list shortened):

#Adds NSFW flair to sexual and drug-related topics
type: submission
title body (includes, regex): [
"\bporn\b", 
"pr0n", 
"pa?edophil(e|ia)",
]
set_nsfw: true
---

The code works fine for words that don't use \b, but fails for ones that do - I've seen multiple posts with "porn" in the title or body slip through without being marked NSFW, for example.

Does Reddit not let you use word boundaries? Is there an alternative code I could use instead?

Author
Account Strength
100%
Account Age
16 years
Verified Email
Yes
Verified Flair
No
Total Karma
539,921
Link Karma
23,673
Comment Karma
504,982
Profile updated: 2 days ago
Posts updated: 2 months ago
r/NoStupidQuestions

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago