Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RubyConf 2013 challenge #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

RubyConf 2013 challenge #5

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 9, 2013

Came up with two:

(\A\w|(?<=_)\w)

(^\D|(?<=_)\D)

A couple questions: Is there a preferred method from a benchmarking standpoint? Is there any other way to find the underscore within_a_variable?

Also, I can't remember the combinations offhand, but when I tested some combinations in Rspec vs. Rubular, it gave different results. On one occasion, Rspec failed, Rubular worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants