It is currently March 28th, 2024, 10:57 pm



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 48, 49, 50, 51, 52, 53, 54 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: October 20th, 2019, 8:18 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
That should be fine.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 20th, 2019, 2:11 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
Freddy wrote:
That should be fine.


yes thank you i enabled Regex for make it work ;)

also i wanted ask you if it possible this in title

Input:
Code:
Year of release ( for example 2018 or 2019 or 1997)


Output:
Code:
Year of release ( for example 2018 or 2019 or 1997) - Italian



Example:
Input:
2018

Output
2018 - Italian


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 20th, 2019, 5:00 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
[0-9]{4}


Replace with:
Code:
$0 - Italian


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 20th, 2019, 7:43 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
thx you freddy


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 12th, 2019, 8:49 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
Input
Code:
Conan.2019.10.28.Edward.Norton.1080p.WEB.x264-XLF
Jimmy.Fallon.2019.10.31.Kristen.Stewart.720p.HDTV.x264-SORNY


Output
Code:
Test.Edward.Norton.1080p.WEB.x264-XLF
Test.Kristen.Stewart.720p.HDTV.x264-SORNY


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 12th, 2019, 9:00 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
.+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


Replace with:
Code:
Test.$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 12th, 2019, 11:24 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
Freddy wrote:
Search for:
Code:
.+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


Replace with:
Code:
Test.$1


Enable regex search.

will be possible to use name at the first
Conan
Jimmy.Fallon

so only if "conan" and "Jimmy.Fallon" regex replace will work


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 12th, 2019, 11:29 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Could you write some "Before" and "After" examples (include some which should not be changed as well).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 12th, 2019, 11:56 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
Input
Code:
Conan.2019.10.28.Edward.Norton.1080p.WEB.x264-XLF
Jimmy.Fallon.2019.10.31.Kristen.Stewart.720p.HDTV.x264-SORNY
NBL.Slam.Highlights.Show.2019.10.31.1080p.HDTV.x264-WiNNiNG
WWE.This.Week.In.WWE.2019.10.31.PROPER.WEB.H264-ACES


Output
Code:
Test.Edward.Norton.1080p.WEB.x264-XLF
Test.Kristen.Stewart.720p.HDTV.x264-SORNY
NBL.Slam.Highlights.Show.2019.10.31.1080p.HDTV.x264-WiNNiNG
WWE.This.Week.In.WWE.2019.10.31.PROPER.WEB.H264-ACES


nevermind i made it work. please let me know if it's correct
Code:
(Conan.*?|Jimmy.Fallon.*?)+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


=========================

second request. want to sort it alphabetically, just to make to looks clean. is it possible?

input (Bcd*?|IUZKD*?|AJZm*?)

output (AJZm*?|Bcd*?|IUZKD*?)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 13th, 2019, 8:08 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Your regex is bit too complicated where it's not needed (more load on CPU).

This would be fine:
Search for:
Code:
(Conan|Jimmy.Fallon).+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


Replace with:
Code:
Test.$2


Enable regex search.

For the second request could you write some "Before" and "After" examples? Just easier to understand.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 13th, 2019, 10:45 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
Freddy wrote:
Your regex is bit too complicated where it's not needed (more load on CPU).

This would be fine:
Search for:
Code:
(Conan|Jimmy.Fallon).+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


Replace with:
Code:
Test.$2


Enable regex search.

For the second request could you write some "Before" and "After" examples? Just easier to understand.


i actually make sure title start with the title which why i added
Code:
^(Conan.*?|Jimmy.Fallon.*?)+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)



in this regex i will add multiple name
like input
Code:
^(Seth.Meyers.*?|Jimmy.Fallon.*?|Conan.*?|James.Corden.*?|Stephen.Colbert.*?|The.Daily.Show.*?)+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


output
Code:
^(Colbert *?|Conan *?|Corden *?|James *?|Jimmy.Fallon *?|Seth.Meyers *?|Stephen *?|The.Daily.Show.*?)+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


this is just to look it clean so later i can understand if any show missing. only way i found is to use notepad++ line operation. but in that way i have to replace multiple times. so wonder if there is any one line regex to make it work :mrgreen:


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 13th, 2019, 11:07 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Better use this then:
Code:
^(Conan|Jimmy.Fallon|Corden|James|Seth.Meyers|Stephen|The.Daily.Show).+[0-9]{4}.[0-9]{2}.[0-9]{2}.(.+)


The "(name1*?|name2*?)+" is a bit bad in this case. It's better to have "(name1|name2).+"

It will work exactly the same and mine is cleaner as well.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 13th, 2019, 1:20 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
yeah yours one works too, thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 14th, 2019, 1:43 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Just do:

Search for:
Code:
.+


Replace with:
Code:
move C:\a\"$0" C:\a\2


Enable regex search.

You might need double slashes in "Replace with": C:\\a\\... etc.

Just add "@echo off" and "pause" manually, that's just two lines.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 14th, 2019, 5:02 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
thanks


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 48, 49, 50, 51, 52, 53, 54 ... 74  Next

Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC