String manipulation functions
Posted: January 19th, 2006, 5:43 am
Hey guys,
One thing I would love to see is the availability of some sort of string manipulation functions. The "cut" plugin is a great example of this, being one of the most basic functions available. However, I would love to see more functions, perhaps more advanced ones.
An example of where I would find this useful is in dealing with the RSS plugin. After using the recomended website to find an RSS feed for my local weather forecast, I noticed that it gives an absolute TON of information, much of which I would like to do without. In fact, there are only a few small pieces I want, but because of the format, I can't just use cut (I never know where exactly in the string the numbers I want will be). However, by using some sort of "search" function, like regular expressions in Linux, one would be able to do a lot, especially if the return value from the $rss can be used as a parameter to this $regex function.
As mentioned elsewhere, it would be easy enough for me to code, I just need to learn a bit more about Win32 (bleh) and creating plugins for Smartie.
Anybody already working on something like this? Anybody have any ideas for implementing or extending this?
One thing I would love to see is the availability of some sort of string manipulation functions. The "cut" plugin is a great example of this, being one of the most basic functions available. However, I would love to see more functions, perhaps more advanced ones.
An example of where I would find this useful is in dealing with the RSS plugin. After using the recomended website to find an RSS feed for my local weather forecast, I noticed that it gives an absolute TON of information, much of which I would like to do without. In fact, there are only a few small pieces I want, but because of the format, I can't just use cut (I never know where exactly in the string the numbers I want will be). However, by using some sort of "search" function, like regular expressions in Linux, one would be able to do a lot, especially if the return value from the $rss can be used as a parameter to this $regex function.
As mentioned elsewhere, it would be easy enough for me to code, I just need to learn a bit more about Win32 (bleh) and creating plugins for Smartie.
Anybody already working on something like this? Anybody have any ideas for implementing or extending this?