An unexplanable regex result

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

An unexplanable regex result

Post by ineuw »

I created 300 lines of the following url and then, wanted to add a column of numbers using regex Replace starting from 50. This column is copied and pasted in place of the "50", and thus access any page between 50 and 350 in edit mode.

I've done this 100's of times without issues, but now, the incrementation is in DESCENDING order. from 351 to 50. What am I doing wrong?

Code: Select all

Search   =\n
Replace  =\n\i{50}\t
https://en.wikisource.org/w/index.php?t ... pt.djvu/50
Last edited by AmigoJack on Sat Dec 30, 2023 11:18 am, edited 1 time in total.
Reason: enable BBCode
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

in the Search dialog (yes, Search, not Replace) - what is your setting for "Direction"?

Btw, I wouldn't do this with Regex, I'd use block selection and fill block.
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Post by ineuw »

MudGuard wrote:in the Search dialog (yes, Search, not Replace) - what is your setting for "Direction"?

Btw, I wouldn't do this with Regex, I'd use block selection and fill block.
The Search dialog direction was ascending. I also suspected directional settings like Sort, but everything was ascending.

Cleaning the configstate.xml "Find" and "Replace" entries solved the problem. I must do this regularly as the number of Find and Replace history exceed a limit.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
Post Reply