Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

0
Problems with regex and .split or .scan
Post Body

  • EDIT: SOLVED! (Thanks for the help guys, you made me realize I was confusing certain things between the ways .scan and .split work and that's why I could not get either working. I was mixing things. Once I got that straight it was easy.)

This works as expected and splits on spaces: y << string.split(" ")

But this does not. I thought it would split on every character:
y = [] y << string.split(/./) puts y[0..3]

I get a blank line. What am I missing? Why don't a get the first 4 characters as I was expecting?

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
13,043
Link Karma
6,281
Comment Karma
6,629
Profile updated: 1 day ago
Posts updated: 1 year 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
10 years ago