Regex is not working properly in AkelPad 64-bit

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Regex is not working properly in AkelPad 64-bit

Post by maki »

Regex is not working properly in AkelPad 64-bit
Regex Enable


REPLACE
"What" field: .+\\([^\\]+?)\\[^\\]+?\.jpg
"With" field : $1


AkelPad replace :shock: :shock: :shock: :shock: :shock: Bad replace
$1$1$1$1$1
Last edited by maki on Sun Aug 24, 2014 2:40 am, edited 1 time in total.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

maki
In AkelPad RegExp you should use \1 instead of $1.
Read documentation: ...\AkelPad\AkelFiles\Docs\AkelHelp-Eng.htm (Main menu -> Help -> Manual).
What: [^\n]+?\\([^\\]+?)\\[^\\]+?\.jpg
With: \1

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

NOT WORK !!!

Screen:

Image


EmEditor
100% WORK

.+\\([^\\]+?)\\[^\\]+?\.jpg

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

maki
Not reproduced on 4.9.0 dev.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

maki
Probably, you have copied the regular expression with the trailing space.

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

KDJ - You're wrong, no spaces.
It does not work. I tested many Times! (4.8.9 64-bit)

http://akelpad.sourceforge.net/en/download.php (4.8.9)

4.9.0 dev
Link download?

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

maki
Test version available here (but only x86).

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

100% BUG


because
other editor work


What has changed - it is strange.. WTF? :x
The program goes crazy with larger files 408 MB (5000,000+ line)

Image
Post Reply