Welcome Guest ( Log In | Register )

> How to filter the output of write-to-file?
lame-name
post Jul 13 2008, 11:55 AM
Post #1


Newbie
*

Group: Members
Posts: 4
Joined: 13-July 08
Member No.: 557



Hi, i am using the file integration to display my "now playing" info in some games (via the games 'exec file' function). Works like charm, BUT i'd like to filter certain words from the output.

For example some webradios put "WWW.SOME-NAME.STUFF" into the song information. Since that can be a very long text (if in title AND album, for example), i'd like to automatically remove that (or if possible: replace with custom text).

I've been playing around with the reg. expressions of the "Ignore song titles matching pattern" feature, but it looks like it COMPLETELY ignores the songinfo if it matches to the regex. (either that, or i somehow missed something)

Thanks for any help or hint.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Serge
post Jul 17 2008, 06:30 PM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



http://amip.tools-for.net/wiki/manual/amip#formatting

$strip(pattern,subject)
Removes all matches to pattern from subject

$strrep(search,replace,subject)
Returns a string with all occurrences of search in subject replaced with the given replace value

$regrep(pattern,replacement,subject)
Searches subject for matches to pattern and replaces them with replacement
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: