i notice when i turn on simple stacking it will change a name like "my_movie.mpg" to "my movie". i assume these regexp are built in.
is it possible to make a regexp to change something like this "{csi ny}{2004-12-01}{officer blue}{03.00 am wed jan 01, 2003}{ct3}.tmf" into "csi ny-officer blue" ?
if you can't change it that much maybe i could at least make a regexp that would take out one section by saying it's the sort and end up with "{csi ny}{2004-12-01}{officer blue}{ct3}" Display objects:: Simple base class for objects which will be needing to use a ColorList for colors. If this display list will never change during the program, it can be done just http://www.ks.uiuc.edu/Research/vmd/vmd-1.2/pg/node33.htmlHOME |
or do the regexp only work when you actually have items to stack?
i tried a few but did not get anywhere
\{.*?\}\{.*?\}\{.*?\}(\{.*?\})\{.*?\}\.
or
\{.*?\}\{.*?\}\{.*?\}(\{.*?\}\{.*?\}\).
or maybe that’s wrong and i only need
\{.*?\}\{.*?\}\.
total commander (like windows explorer) has a 'multi-file rename' tool. * very flexible
its in there...
they are used by cutil::cleanfilename, which is used by cfileitem::cleanfilename.
but looking at the code, it wont do what you want. its designed to only remove known strings from a filename.
i'll just have to leep playing with then.
i did manage to get rid of the {ct3} with
[{]ct([0-9])[}]
but that only woked with that one example.
i have build a build dated april 1st 2005 and i did notice that i had a file name with "party" in the name and the current regexp took it out! i'll have to verify that before i report it. How to dynamically change BODY BgColor - ASP.NET 2.0 Code Example:: How to display tables and fields from an SQL Server database in a datagrid How to use simple functions for String and StringBuilder http://www.tanguay.info/webold/codeExample.php5?id=22HOME | Unix commands:: cd - change working directory chmod - change the protection of a file or format text for simple display pic - make simple pictures for troff input http://www.math.harvard.edu/computing/unix/unixcommands.htmlHOME |
i'm trying to figure out what other featues might be nice. one idea i came up with was maybe a display setting file you could drop in a directory and change how thinks are displayed.
say i have a dir with:
scrubs.{2001-10-02}.my first day (aka pilot).mpg
scrubs.{2001-10-04}.my mentor.mpg
scrubs.{2001-10-09}.my best friend's mistake.mpg
scrubs.{2001-10-16}.my old lady.mpg
scrubs.{2001-10-23}.my two dads.mpg
scrubs.{2001-10-30}.my bad.mpg
scrubs.{2001-11-06}.my super ego.mpg
scrubs.{2001-11-15}.my fifteen minutes.mpg
scrubs.{2001-11-20}.my day off.mpg
and a settings file in that dir like:
scrubs
(.*?).{(.*?)}.(.*?).
%3 (%2)
2
then the output would be:
scrubs:
-my first day (aka pilot) (2001-10-02)
-my mentor (2001-10-04)
-my best friend's mistake (2001-10-09)
-my old lady (2001-10-16)
-my two dads (2001-10-23)
-my bad (2001-10-30)
-my super ego (2001-11-06)
-my fifteen minutes (2001-11-15)
-my day off (2001-11-20)
might be stupid, but you can only do so much with global regexp. would anyone else like anything like this?
i'm not sure. there used to be an internal mechanism to clean the filenames. open up settings.xml and search for "clean".
the addition of the regexps for stacking may have changed this.
i could not find "clean" in any of the xml files i looked in.
fyi, the regex is indirectly used in the cleaning code, at the very beginning (in the call to getvolumefromfilename) - technically this is meant to clean out the syntax used for the volume name (i.e. cd1, cd2, etc.), but if you are clever enough, i believe you could make this apply via regex for whatever you want, even non-multi-volume files.
for example, to clean up all your scrubs episodes, you could do something like:
scrubs.[{]\d\d\d\d-\d\d-\d\d\[}]
not exactly what you want, but should be able to handle most of what you come across.
so basically the logic for cleaning in the current version is:
1. remove the file extension.
2. remove the applicable regex-matched expression.
3. remove all tokens from the tokens list (stored in settings.xml under myvideos\cleantokens) - these tokens can be separated by any separator in the separators list (stored in settings.xml under myvideos\cleanseparators). the default tokens list contains things like divx, xvid, ac3, etc., and the default separators list is [- _.[({+].
a more intelligent cleaning logic using a separate group of regex expressions might be more optimal...
cleaning is currently not using configurable regexp. they should imo too thou.
Nobody understands...any help please?
50 points for someone willing to do this!!!!!!!!!!?
|