RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [MM2+]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-06-18)[MM2+3]

Postby mk1065 » Wed Jul 01, 2009 7:08 pm

Thanks ZvezdanD that worked perfect! At last!!!!!!!!!!!!!! All my featured artists are perfect :lol:

Does anyone know how to accomplish this...

Find what: (Artist, Artist) or (Artist, Artist, Artist)

Replace with: (Artist & Artist) or (Artist, Artist & Artist)
mk1065
 
Posts: 6
Joined: Thu Feb 14, 2008 9:27 am

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-06-18)[MM2+3]

Postby martialartsguy » Thu Jul 02, 2009 11:39 am

martialartsguy wrote:Question here, and again I apologize for my lack of knowledge with regexp. I'd like to capitalize all the text (from: happy to: Happy) in all the following fields:

Tempo, Mood, Occasion, Quality

I use these a lot and sometimes forget to capitalize. I have presets set up for each one, but if I could run all four at once, that'd be excellent.
Each has the following setting:

Find What: ([\w\xDF-\xF6\xF8-\xFF\u0100-\u024F\u0400-\u04FF])([\w'\xDF-\xF6\xF8-\xFF\u0100-\u024F\u0400-\u04FF]*)
Replace with: UCase("$1") & LCase("$2")

Thanks for your help.


ZvezdanD - Any help here por favor?
MM 4.0.0.1459
martialartsguy
 
Posts: 222
Joined: Mon Apr 03, 2006 9:11 am
Location: Denver, CO

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-06-18)[MM2+3]

Postby ZvezdanD » Thu Jul 02, 2009 3:50 pm

Big Isch wrote:My suggestion is to add a text-field that functions as filter for the presets display in the listbox.

nynaevelan wrote:As an organizational maniac I agree with this suggestion. :D

Thanks so much for suggestion. It is really interesting, but I am already working on some another approach for grouping presets which I already described before. This is not so trivial and there are also many other things which I am working on, so it needs time to finish.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-06-18)[MM2+3]

Postby ZvezdanD » Thu Jul 02, 2009 3:53 pm

martialartsguy wrote:I have presets set up for each one, but if I could run all four at once, that'd be excellent.

I said many times before - the current version of this script could modify only one field at time (although it could use many fields as a source). The Batch option which could be used to execute several presets at once is on my To Do list.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegSub Help

Postby ZvezdanD » Thu Jul 02, 2009 3:58 pm

GIL wrote:Do you ever wish you could get the version 35.9 of this script from the year 2025?

I am not sure that understand. Do you want to say that there are too many updates of this script or that its development is too slow?

By the way, there is a new update (3.7) with the mentioned function, I already described its usage.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-06-18)[MM2+3]

Postby ZvezdanD » Thu Jul 02, 2009 4:12 pm

mk1065 wrote:Does anyone know how to accomplish this...

Find what: (Artist, Artist) or (Artist, Artist, Artist)

Replace with: (Artist & Artist) or (Artist, Artist & Artist)

Find what:
Code: Select all
, ([^,&]+?)$

RegExp1: on
Replace with:
Code: Select all
  & $1
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Postby mk1065 » Thu Jul 02, 2009 5:28 pm

ZvezdanD - You Rock!!!
mk1065
 
Posts: 6
Joined: Thu Feb 14, 2008 9:27 am

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Postby Big Isch » Fri Jul 03, 2009 8:07 am

Hee,

DateTimeISO really helps, just as MapArrayEx does - Thanks a lot.

What about a DateISO when needing just the date? (Well, could also use Left( DateTimeISO(), 10) anyway.
Big Isch
 
Posts: 112
Joined: Mon Mar 12, 2007 8:34 am
Location: Austria

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Postby ZvezdanD » Fri Jul 03, 2009 3:19 pm

Big Isch wrote:What about a DateISO when needing just the date? (Well, could also use Left( DateTimeISO(), 10) anyway.

I will add it with the next update, although you could use Left... as you mentioned.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm

Regrxp - change toolbar order?

Postby markeh » Sun Jul 05, 2009 7:42 pm

Great script!

Is there a way to control the order that toolbar buttons appear in the search toolbar?


thnx
markeh
 
Posts: 199
Joined: Fri May 25, 2007 1:30 am

Re: Regrxp - change toolbar order?

Postby ZvezdanD » Mon Jul 06, 2009 1:04 am

markeh wrote:Is there a way to control the order that toolbar buttons appear in the search toolbar?

Of course. Moving some preset through the list of presets by Up/Down buttons you change its order in toolbar as well.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Postby markeh » Mon Jul 06, 2009 1:46 pm

Of course. Moving some preset through the list of presets by Up/Down buttons you change its order in toolbar as well.



Of course - now I see it.

I didn't realize that I needed to close/open MM for it to show.

Thanks,


.
markeh
 
Posts: 199
Joined: Fri May 25, 2007 1:30 am

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Postby ZvezdanD » Mon Jul 06, 2009 2:08 pm

markeh wrote:I didn't realize that I needed to close/open MM for it to show.

??? You don't need to restart MM to show RegExp toolbar buttons - changes on them are automatically displayed.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2589
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Postby markeh » Mon Jul 06, 2009 9:54 pm

??? You don't need to restart MM to show RegExp toolbar buttons - changes on them are automatically displayed.



Well, it does now... I don't think I just missed it, so at least a few times it didn't.

Thanks,


.
markeh
 
Posts: 199
Joined: Fri May 25, 2007 1:30 am

bypass "confirm" message on button

Postby markeh » Mon Jul 06, 2009 10:01 pm

I have defined two regular expressions (and attached buttons) that changes a custom field to either "Y" (meaning sync to my iPod) to blank, meaning (duh...) don't sync.

For more complex changes, I certainly want the confirmation message before I change hundreds of tracks. But in this case, its an extra step that I would like to avoid.

Any way of turning this off, just for these two changes??


Thank,



.
markeh
 
Posts: 199
Joined: Fri May 25, 2007 1:30 am

PreviousNext

Return to Need Help with Addons?

Who is online

Users browsing this forum: Google [Bot] and 13 guests

cron