How to generate sequence numbers using replacement format strings in UEStudio 11.00.0.1011 like TextPad 8.0.2 (32-bit edition)
In TextPad 8.0.2 in build feature:
In TextPad 8.0.2 in build feature:
PLEASE implement this feature in UEStudio. It would be a very useful feature!TextPad wrote:You can update or insert sequence numbers, using replacement format strings on the Replace dialog box, with the Regular expression option checked.
The syntax of the \i replacement format is: \i{start,increment,width,fillchar}
where start and increment are signed integers, width is an unsigned integer, and fillchar is any character, but normally space or '0'.
Without any qualifiers, \i is equivalent to \i{1,1,0, }.
Expression: Effect:
\i Replace with numbers starting from 1, incrementing by 1.
\i{10} Replace with numbers starting from 10, incrementing by 1.
\i{0,10} Replace with numbers starting from 0, incrementing by 10.
\i{100,-10} Replace with numbers starting from 100, decrementing by -10.
\i{1,1,3,0} Replace with numbers starting from 1, incrementing by 1. The numbers will be right justified in a width of 3 characters, zero filled.
Note that if more than one \i expression is used in a replacement format, they increment independently of each other.
Examples:
- To insert line numbers at the start of each line:
Search for: ^
Replace with: \i- To update sequence numbers of the form Axxx, Bxxx, ..., Zxxx where "xxx" is any number >= 100, independent of the letters, which are to be preserved:
Search for: (\u)[1-9]\d{2,}
Replace with: $1\i{100}