This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KRename vs reg expression

Tags: None
(comma "," separated)
shurato
Registered Member
Posts
17
Karma
0

KRename vs reg expression

Sat May 30, 2020 8:52 pm
Hi.

I have files like this:
ABCD ACx3) (1).txt
ABCD AACx5) (1).txt
ABCD ACx3).txt
ABCD AC) (1).txt
ABCD ac_aac].txt
ABCD ac_aacx3] (1).txt

And I would like to rename them into this:
ABCD AC).txt

I tried to search using this regular expression
Code: Select all
/(?:[AaCc\s\_]{2,6}[Xx\d\]\)\}]{1,3}[\ \(\)\d]{0,4})/g
and replace with
Code: Select all
AC)
which works on https://regexr.com/ but it doesn't work on KRename (Reg Expression "checked" with Process Tokens "unchecked".

What have I done wrongly?


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell