in reply to Re^2: How can I access the number of repititions in a regex?
in thread How can I access the number of repititions in a regex?

Erm, just use that big wide key at the bottom of your keyboard? (Burma Shave)

Update: And to clarify what I think you're saying your problem is: you've got a regex with multiple captures of varying length (say, /(a+)(b+)/) and you want to know how many repetitions each captured subexpression matched (i.e. how many "a"s and how many "b"s) for an arbitrary regex.

Which is actually a kind of neat question (and I'm drawing a blank of an "elegant" solution off the cuff; I initially was going to comment about the operator-which-shall-not-be-named too (=()=) but then read the above post and saw you had possibly several subexpressions to count).

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^4: How can I access the number of repititions in a regex?
by ww (Archbishop) on Mar 11, 2008 at 14:23 UTC

    On the off-chance that you're asking about indenting OUTSIDE <c>...</c> tags, try <blockquote>...</blockquote> which

    works like this, indenting both sides from the maintext margins and wrapping long lines like this one.

    HTH

Re^4: How can I access the number of repititions in a regex?
by pat_mc (Pilgrim) on Mar 11, 2008 at 13:35 UTC
    Fletch -

    Your are spot on in your interpretation of the problem.
    But what is your solution?

    And if thou shallt not see, there will not be another but one.

    Pat