#1 2008-09-16 00:01

admsupport
Member
From: Osaka, Japan
Registered: 2008-09-15
Posts: 13

Serialize with same name and strip last occurrence of "-"

Hi, I am new here so, hello everyone and thank to Mirster Denis for his work.

2 simple questions:

a) how to rename multiple files with different names into a single name + serialize (e.g New file 001, New file 002, etc) with only 1 or 2 rules?

So far I need 3 rules 1) delete 2) insert 3) serialize

b) how to stripe only the last occurrence: "-" but keep the first one, in a file like this one:
Sample Name - Sample Name - Sample Name

Thanks

PS. does anybody know a good tutorial for a (complete) beginner about Regular Expressions

Last edited by admsupport (2008-09-16 00:02)

Offline

#2 2008-09-16 07:11

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Serialize with same name and strip last occurrence of "-"

admsupport wrote:

Hi, I am new here so, hello everyone and thank to Mirster Denis for his work.

Welcome admsupport

a) how to rename multiple files with different names into a single name + serialize (e.g New file 001, New file 002, etc) with only 1 or 2 rules?

So far I need 3 rules 1) delete 2) insert 3) serialize

Is it a matter to use two rules only instead of three ? wink


b) how to stripe only the last occurence: "-" but keep the first one, in a file like this one:
Sample Name - Sample Name - Sample Name

Did you see "Remove"-Rule with "()Last"-feature?
I think this could solve your question?


PS. does anybody know a good tutorial for a (complet) beginner about Regular Expressions

First start: http://www.den4b.com/forum/viewtopic.php?id=450



------------------------

Here is my older list of links to regex help, some may be out datet? sorry.

- -

Here are some help in general about Regular Expressions:

Regular-Expressions.info - The Premier website about Regular Expressions

Boost.Regex Perl Regular Expression Syntax and the format string

Regular Expression HOWTO A.M. Kuchling

Perl Regular Expression Tutorial

A nice one sheet overview about the syntax (PDF file)

http://etext.lib.virginia.edu/services/ … regex.html

http://regular-expressions.info/reference.html

http://www.regxlib.com/Default.aspx

blogging community devoted to the topic of regular expressions

dead ==> Starmerj's Perl RegExp Crib Sheet

PDF: RegEx QuickSheet




Something in german:

Reguläre Ausdrücke in The Bat!     auf Deutsch

nicht wissenschaftlicher Workshop für Regular Expressions


Online test:
Excellent RegEx evaluator, useful for RegEx's that'll run in JavaScript.

An very minimalist online Ajax-based ASP.NET site
-


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2008-09-16 08:53

admsupport
Member
From: Osaka, Japan
Registered: 2008-09-15
Posts: 13

Re: Serialize with same name and strip last occurrence of "-"

Hi back Stefan,

I installed ReNamer last night among few others apps to make a choice. I tried them in blind with few basic rules. I kept ReNamer, I am now reading the forum.

Is it a matter to use two rules only instead of three ?

The other file renamers had a the similar pattern: rename file using the replace rule, from: empty, with: new file name. Renamer was a bit different and I was worry to make an uncessary step with a delete rule beforhand.

Did you see "Remove"-Rule with "()Last"-feature?
I think this could solve your question?

It does, of course wink

I will read your posts with interest and take a look at a RegEx tutorial link I found elsewere on the forum. However RegEx, programing & scrpting are beyond my qualifications. Even with simple operation, I will need some help on the forum, I am afraid.

So, thanks for the support.

Offline

Board footer

Powered by FluxBB