You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
so the curly braces aren't part of the capturing groups (and therefore not included in argument b) because they're not in the parentheses?BrainLikeADullPencil– BrainLikeADullPencil2012年12月08日 23:43:09 +00:00Commented Dec 8, 2012 at 23:43
-
@BrainLikeADullPencil: Yep. The parentheses include everything that you want to capture. You can have multiple sets of parentheses.Blender– Blender2012年12月08日 23:43:52 +00:00Commented Dec 8, 2012 at 23:43
-
@BrainLikeADullPencil: Here's a quick demo. It should be helpful: jsfiddle.net/KeHdU/5Blender– Blender2012年12月08日 23:47:43 +00:00Commented Dec 8, 2012 at 23:47
lang-js