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

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [MM2+]

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by Guest » Fri Mar 20, 2015 9:38 am

Code: Select all
& SQLQuery("SELECT Max(CAST(TrackNumber AS integer)) FROM Songs WHERE IDAlbum = " & oSongData.Album.ID & " GROUP BY IDAlbum")

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by Zaphod703 » Thu Mar 19, 2015 11:47 pm

I had oooone lil more question lol... I understand if my other question doesn't have an answer... This one might not either. Just curious: Is there any way to grab onto the the Last Track #. So if every album has their own track numbering.. And say one album ends at 56. At the end I want: "(of 56)" Anyway for RegExp get the Last Track # and assign it? could be assign at the end... I can already add at the end "(of" with either RegEx or ExtractFields and Also I can add the ).

Sorry if im asking bit too much!

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by Friedrich » Wed Mar 18, 2015 2:52 am

Baalz wrote:Hi!
Was looking for help with an expression to insert a "- " in a specific spot in a title
This would be within title field only and be inserted just before "01" in the following ex. "nameoftitle 01 of 13"
So I would end up with "nameoftitle - 01 of 13"
Thanks for any help
Bob

This expression in the "Find what"-Field might do the job:
(?=0[1-9])

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by Zaphod703 » Sat Mar 14, 2015 9:34 pm

Hey! Damn I Love This Program! I used to use Mediamonkey for music and now use it for organzing Audiobooks. RegExp still doing an amazing job!! I have list of all the presets in a doc in ABC order. But damn I wish I understood all the coding to create my own preset.

I tried my best to find something and really sorry if it is already possible. Basically I want to Move Text Inbetween something. Example If I use { & } in Artist category for information. And say I want to asign it to a field... or (better if possible) move it before "(" also used in field... move "{<content>}" to come before "(<contents>)". Not sure if that last one is possible? lol this stuff confuses me hahaha. Right now I can move Artist to Custom 1.... Remove everything before { and everything after }. And than move it back. Bit of work. Wondering if there is any easier way.

Sum it up:
I have Many Fields like:
"Name of Series" "(Book #)" "Book Name" "{Descriptions}" "(Year)"

Half I want to... Half Im trying to understand RegExp better... Change it to:
"Name of Series" "{Descriptions}" "(Book #)" "Book Name" "(Year)"

AND/OR... Just How to just copy everything that starts with "{" & ends with "}".

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by MMFrLife » Wed Mar 11, 2015 9:10 pm

I want to add the track number to the end of a field. Is there a preset for this I'm blind to,
or is there a way to modify this one:

"Add Track number to the begin of Title"
I can change it to the field I want, but I don't know if there is a way (or how) to get it to the end.

.....or is there another existing preset more suitable for modification for the same purpose?

This is needed for something I do with multi-disc albums/sets.

[note: this seems related to what the previous poster is asking (something like specified string: "-" with auto-increment
to end of title (as a poss. 2nd step) and then as a 2nd or 3rd step add specified string: "of 13", maybe?]

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by Baalz » Sat Mar 07, 2015 11:04 am

Hi!
Was looking for help with an expression to insert a "- " in a specific spot in a title
This would be within title field only and be inserted just before "01" in the following ex. "nameoftitle 01 of 13"
So I would end up with "nameoftitle - 01 of 13"
Thanks for any help
Bob

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Sun Jan 25, 2015 2:12 pm

Preset: Remove <From Field> from the begin of <Into Field>
Description: If Album = The Wall, Artist = The Wall Pink Floyd -> Pink Floyd
Find what: ^.*
Into: whatever field (e.g. Artist)
Regular expression 1: checked
Replace with: IIf(<From Field> = Left("$&", Len(<From Field>)), LTrim(Mid("$&", Len(<From Field>) + 1)), "$&")
From: whatever field (e.g. Album)
VBScript: checked

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Sun Jan 25, 2015 2:09 pm

Preset: Keep only specified number of words from the end of <Into Field>...
Description: If specified value = 2, Dark Side of the Moon Pink Floyd -> Pink Floyd
Find what: .*((?:\s+\S+){<Number Caption = "Number of words" Value = "2" MaxValue="100">}$)
Into: whatever field
Regular expression 1: checked
Replace with: LTrim("$1")
VBScript: checked

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by MMFrLife » Thu Jan 15, 2015 1:42 pm

You should be able to do that directly in MM.
Select all album tracks > right-click > properties > erase artist field > type in America.

Is that what you tried?
Similar "idea" for RegEx as above, but it shouldn't be necessary. It can be done as a native function.

As far as a script to just automatically do this every time, not sure, as that field's info would be unique for every album.
There is a way to lop off things at the end in RegEx. but how you would set it for the various unique lengths might be difficult.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by rfhmediamonkey » Wed Jan 14, 2015 9:27 pm

In my Media Monkey Library version 4.1.5 under Artist & Album Artist, I'm trying to remove the title of song from artist field.

Example: Under the Title field it shows "A Horse with No Name" which is okay. Under the Artist field it shows, "A Horse with No Name America". It should only show under the Artist field as "America".

I have used RegExp Find/Replace and Auto-Tag from Filename but still haven't found a solution. Also, cannot find a preset or filename format to get this resolved.

Can you fix this with the correct script or do you have any other suggestions?

Thank you.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by popsmike » Tue Dec 09, 2014 4:12 pm

ZvezdanD wrote:
kluv wrote:Will this Addon get updated anytime soon?

The new version is in development, but I don't know when it will be finished since that depends on donations.


Keep us posted on the update ZvezdanD we always welcome your new Scripts, they are as the Americans say "Awesome"
and some people will definitely contribute to your work!!

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Mon Dec 08, 2014 9:56 am

kluv wrote:Will this Addon get updated anytime soon?

The new version is in development, but I don't know when it will be finished since that depends on donations.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by kluv » Mon Dec 08, 2014 5:49 am

Will this Addon get updated anytime soon? Was wondering if you could add an auto function. I have about 7 presets I do on my music and if I could just push a button so that it runs thru all of them automatically that would be swell.

Thanks and thanks for developing RegExp, I use this program more than any other and it's been a life saver. Thanks again and have a Merry Christimas!!

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by pintree3 » Tue Nov 25, 2014 1:24 pm

Thanks for this--really great :-)
Unfortunately for me, unless I'm wrong, the one feature I came here for does not seem to exist.
You have:
1- Uppercase first letter of each folder/filename of Path
2- Uppercase first letter of each line or sentence of Lyrics and lowercase others
3- Uppercase only first letter of each line or sentence of Lyrics, others unchanged
The 1st seem to be according to the actual file and not what you see within MM
The other 2 interest me except not for lyrics but for the actual song title (or even album name and artist)
So song title / artist / album
would be corrected from
''I Love What You Think Of That Guy Who Refused To Accept What She Said''
to
''I love what you think of that guy who refused to accept what she said''
I really, really hate these super long titles that bands think are cool for some reason.
Actually considering long titles I wouldn't mind a command line that
replaces common words such as 'your' to 'ur', 'you' to 'u', 'and' to &', 'with' to 'w'
Oh and here's another idea, if I may, What of limiting a title to a given number of characters, for ex. 22, followed by 3 dots.
So the above title would go from.
''I love what you think of that guy who refused to accept what she said''
to
''I love what you think...''

Thank you

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by MMuser2011 » Tue Nov 25, 2014 2:43 am

Have a look at the 253 presets.
You will find several entries like
"Copy featuring artists or [(featuring artists)] from the end of Artist to the end of Title"
or
"Copy featuring artists from the end of Artist to the end of Title and put them within ( )"
or
"Copy ft. artists from the end of <From Field> to the end of <Into Field> and put them in ( )..."

It should be easy to adjust it to your needs.

Top