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
An issue with the re.sub() function
Post Body

Hello. I am trying to add a new line after the punctuation on run-in text with no spaces which looks kinda like this:

"Hello,thisis,asample.Iamtrying,toworkwiththis."

The code I am writing uses re.sub() as follows:

"new_string = re.sub(",", ",/n", string)"

This code works and adds a new line after every comma like you would expect. However when I try it with a period it doesn't work. It works with every other character except the period. Instead it just prints a line of periods. Is the period a special character for re.sub()? If it is (or isn't) how do I get around it? Thanks for taking the time to read this.

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,038
Link Karma
47
Comment Karma
1,991
Profile updated: 3 days ago
Posts updated: 5 months ago

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
1 year ago