INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Editing a title  (Read 764 times)

maid

  • Citizen of the Universe
  • *****
  • Posts: 2024
Editing a title
« on: January 03, 2013, 07:38:43 pm »

Is there a way of removing periods from between words eg American. Horror. S1E1 to American Horror S1 E1

Cheers
Logged
Intel Core i5-4590 CPU,  Haswell Gen2,  LGA1150, 3.3GHz 6 DDR3/ 2x PCIE3.0 x16 16gb Ram Windows 10 64 bit Asus Z97-DELUXE ATX Motherboard Nvidia GForce gtx1080 Receiver Onkyo TX-NR925 TV LG LF6300 55" smart TV

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Editing a title
« Reply #1 on: January 03, 2013, 07:44:39 pm »

This seems like a simple Find/Replace

Find what: ". "
Replace " "

The S1E1 is not following the same pattern, but is just a splitting.  Another expression can be used for that.

  regex([name], /#(S\d+)(E\d+)#/, -1)[R1] [R2]

If you want to work on an entire Name:

  regex([name], /#(.*)(S\d+)(E\d+)(.*)#/, -1)[R1][R2] [R3][R4]

And to solve all at once:

  replace(regex([name], /#(.*)(S\d+)(E\d+)(.*)#/, -1)[R1][R2] [R3][R4], ./ , / )
Logged
The opinions I express represent my own folly.

maid

  • Citizen of the Universe
  • *****
  • Posts: 2024
Re: Editing a title
« Reply #2 on: January 03, 2013, 08:03:53 pm »

I want to change the filename and I dont understand the formula you have offered.
Logged
Intel Core i5-4590 CPU,  Haswell Gen2,  LGA1150, 3.3GHz 6 DDR3/ 2x PCIE3.0 x16 16gb Ram Windows 10 64 bit Asus Z97-DELUXE ATX Motherboard Nvidia GForce gtx1080 Receiver Onkyo TX-NR925 TV LG LF6300 55" smart TV

maid

  • Citizen of the Universe
  • *****
  • Posts: 2024
Re: Editing a title
« Reply #3 on: January 03, 2013, 08:08:41 pm »

done it thanks
Logged
Intel Core i5-4590 CPU,  Haswell Gen2,  LGA1150, 3.3GHz 6 DDR3/ 2x PCIE3.0 x16 16gb Ram Windows 10 64 bit Asus Z97-DELUXE ATX Motherboard Nvidia GForce gtx1080 Receiver Onkyo TX-NR925 TV LG LF6300 55" smart TV

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Editing a title
« Reply #4 on: January 03, 2013, 08:15:47 pm »

For others in the future, in Rename, Move & Copy Files, set the Filename rule to:

   replace(regex(filename(,0), /#(.*)(S\d+)(E\d+)(.*)#/, -1)[R1][R2] [R3][R4], ./ , / )

and disable other sections.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up