id summary reporter owner description type status milestone component version severity resolution keywords cc 3389 Replacement format operator to substitute sequential numbers Keith MacDonald John Maddock "I'd like to suggest an enhancement to the Boost-Extended format string syntax. Its syntax is one of: {{{ \i \i(n) }}} The former substitutes sequential numbers, starting at 1, while the (n) modifier starts the sequence at value . For example, given this text: {{{ #define FOO 52 #define BAR 53 }}} Searching for ""[0-9]+"" and replacing with ""\i(100)"" would result in: {{{ #define FOO 100 #define BAR 101 }}} Each \i in the replacement format is treated independently, so searching for "". ."" in the following text: {{{ a b c d }}} and replacing it with ""\i \i(20)"" would result in: {{{ 1 20 2 21 }}} A useful variation would be the ability to specify the field width required, perhaps using ""\i(n,w)"", for leading spaces, and ""\i(n,0w)"" for leading zeroes. Thanks " Feature Requests closed Boost 1.41.0 regex Boost 1.40.0 Not Applicable wontfix regex format syntax