Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8344627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:25:49+00:00 2026-06-09T06:25:49+00:00

Pulling in info from a web scrape, I got this name: >> temp Rob

  • 0

Pulling in info from a web scrape, I got this name:

>> temp
"Rob Bolden"
>>temp.split " " #space bar
["Rob Bolden"]
>>temp.split /\s/
["Rob Bolden"]
>>temp.split /\s+/
["Rob Bolden"]
>>temp.split /\W/
["Rob", "Bolden"] #what I expected

What is not a space character (/\s/) but is a non-word character (/\W/)?

EDIT

$ruby -v 
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:25:51+00:00Added an answer on June 9, 2026 at 6:25 am

    With Ruby 1.9.2, you could use ord as in:

    "Rob Bolden"[3].ord
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pulling info from an XML file and the div class=long works great
I'm pulling some info from a database then putting it into a DIV and
I have a HTML widget/table that is pulling info from a private server that
pulling some info from a MySQL db via openquery: select * from foo where
Why is that? Mercurial Pull -------------- INFO Pulling From: http://localhost/hg/hg/PorjectName/ ... comparing with http://localhost/hg/hg/PorjectName/
This is a basic code which I use to pull info from my affiliate
I've got an app that displays information from our web service. The user has
I'm currently pulling info from an sql DB where the 'cachedDist' column is set
I'm making a report with Visual Studio 2008, pulling the info from a table
Pulling my hair out over this one. I have one wordpress install at /2009

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.