#1 2024-03-11 11:13

psb_24
Member
Registered: 2024-03-11
Posts: 3

replace / change position

Hi to everyone,

I have learned that there are regular expressions.
I'm just not sure if it's possible to solve my problem with it.

Current file name:
First name(space!!!)Last name(space)- everything after the hyphen should remain as it is
Desired result:
Last name,(space)first name(space)- everything after hyphen as in original filename.

Is it possible to implement something here with regular expressions and if so, how?
Sure, double names etc. will cause problems, I can live with that.

kind regards
Peter

Last edited by psb_24 (2024-03-11 11:38)

Offline

#2 2024-03-11 15:23

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: replace / change position

Hello Peter,

I guess this is what you were looking for:

Swap name and surname, with 2 and 3 words

P.S. You can search forum before posting. Someone might asked the same or similar question already.

Cheers! smile


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

#3 2024-03-11 19:48

psb_24
Member
Registered: 2024-03-11
Posts: 3

Re: replace / change position

Hi eR@SeR,
this is something I have already found - but did not help to me. Possibly input error/user error
mini_Image-001.png

Last edited by psb_24 (2024-03-11 19:49)

Offline

#4 2024-03-12 10:06

psb_24
Member
Registered: 2024-03-11
Posts: 3

Re: replace / change position

solved - user error
big_smile

Offline

Board footer

Powered by FluxBB