regular expression issue

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 2
Joined: Sun Sep 27, 2015 3:18 pm

regular expression issue

Post by winflowers »

I just updated to AkelPad from 4.8.7 to 4.9.6 and found some regular expression didn't work anymore.

For example, I would like to delete all lines which do not started with "http". In old version (<4.9.0), I can use expression "^(?!http).*$" to find these contents and replaced them with null. However, begin from version 4.9.0, it can't find the correct lines. I noticed there were some regular expression changes since version 4.9.0. But why this expression is not supported anymore? What can I do to complete such task?

Thank you very much!

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

winflowers
Maybe "^(?!http)[^\r\n]*?$"? Read AkelHelp-Eng.htm and AkelHistory-Eng.txt please.

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

Post by Instructor »

^(?!http).*?$

Offline
Posts: 2
Joined: Sun Sep 27, 2015 3:18 pm

Post by winflowers »

Instructor wrote:
^(?!http).*?$
It works!
I found it after reading the help file.
Many thanks to Instructor and Skif_off.
Post Reply