Skip to content

Instantly share code, notes, and snippets.

@caleywoods
Created January 25, 2011 03:35
Show Gist options
  • Save caleywoods/794463 to your computer and use it in GitHub Desktop.
Save caleywoods/794463 to your computer and use it in GitHub Desktop.
111 def test_slash_b_anchors_to_a_word_boundary
112 assert_equal "vines", "bovine vines"[/\bvine./]
113 assert_equal "super dooper", "super dooper pooper scooper"[/\bsuper\s\S+/]
114 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment