Opened 14 years ago

Closed 13 years ago

#2736 closed Feature Requests (fixed)

The "regex_replace" function's format string parameter can refer to at most 99 subexpressions.

Reported by: janderson@… Owned by: John Maddock
Milestone: Boost 1.38.0 Component: regex
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

The format string has the following syntax: (?ddexpression1:expression2), which limits the number of subexpressions that can be matched and replaced.

If a regular expression contains more than 99 subexpressions that need to be matched and replaced (if matched), then it cannot be currently handled with the boost::regex_replace function because the format string cannot refer to a subexpression with an index greater than 99.

Is this current limitation necessary? If so, why?

Change History (2)

comment:1 by John Maddock, 14 years ago

Are you able to provide a convincing use case for more than 99 sub-expressions?

Thanks, John.

comment:2 by John Maddock, 13 years ago

Resolution: fixed
Status: newclosed

Never mind, recent changes in Trunk have fixed this.

Note: See TracTickets for help on using tickets.