Script for several consecutive regex search/replace actions

Discuss and announce AkelPad plugins
Post Reply
  • Author
  • Message
Offline
Posts: 14
Joined: Sat Jul 05, 2008 11:30 am
Location: Odesa, Ukraine

Script for several consecutive regex search/replace actions

Post by ewild »

Is there a script for several consecutive regex search/replace actions at a time without a GUI (search-replace pairs to be typed in by a user in a script itself)?

e.g.

Code: Select all

// *** Replace text in AkelPad regexp syntax;
// *** without GUI;
// *** in a single tab | in all tabs mode;

mode = active_tab | all_tabs

find_replace_pair_1
find =[\x{2010}\x{2011}\x{2012}\x{2013}\x{2014}\x{2212}]
replace =-

find_replace_pair_2
find =(\d{2})-(\d{2})-(\d{4})
replace =\3\2\1

...

find_replace_pair_N
find = ([09])\,([09])
replace = "\1.\2"

script {...}
Post Reply