RegExp - Regular Expressions for LCD Smartie
Posted: February 25th, 2006, 5:59 am
link: regexp-1.0.zip
Good news LCD Smartie users, we now have one of the most powerful tools known to man, Regular Expressions!
I'm sure many of you are going, "What the f*&$ is a regular expression?" Well, it's a very thorough (if not complicated and cryptic) language for expressing patterns. These patterns can be used for many things: search and replace, creating substrings, reformatting strings, and counting occurances of patterns--just to name a few!
All of these functions are available within this plugin. For information on how to use the plugin, check the included readme.txt. To learn about regular expressions, check http://www.regular-expressions.info/.
What can you do with this?
- Pick out small numbers or sections from long strings (similar to cut.dll, but much more powerful!)
- Check for the presence of strings within strings (great for making actions that depend on a line in a large file)
- Perform advanced replacements--regex's specialty! Similar to sandr.dll, but able to match more than just simple strings.
What do I use this for?
- Reformatting the horrendously verbose string generated from weather RSS feeds.
- Making $TrackTitle (and other media player commands) output EXACTLY what I want to see.
- Displaying specific lines from a text file (using $File), even when I don't know where in the file those lines occur!
Since it is built on the C++ Regex Engine, this plugin has been released under the GNU General Public License (GPLv2). You are free to use it for personal or commercial purposes, and may distribute it freely, as long as the license and source code accompany it. You may also use it in your own derivative works, so long as you adopt the same license and make the source code freely available.
Good news LCD Smartie users, we now have one of the most powerful tools known to man, Regular Expressions!
I'm sure many of you are going, "What the f*&$ is a regular expression?" Well, it's a very thorough (if not complicated and cryptic) language for expressing patterns. These patterns can be used for many things: search and replace, creating substrings, reformatting strings, and counting occurances of patterns--just to name a few!
All of these functions are available within this plugin. For information on how to use the plugin, check the included readme.txt. To learn about regular expressions, check http://www.regular-expressions.info/.
What can you do with this?
- Pick out small numbers or sections from long strings (similar to cut.dll, but much more powerful!)
- Check for the presence of strings within strings (great for making actions that depend on a line in a large file)
- Perform advanced replacements--regex's specialty! Similar to sandr.dll, but able to match more than just simple strings.
What do I use this for?
- Reformatting the horrendously verbose string generated from weather RSS feeds.
- Making $TrackTitle (and other media player commands) output EXACTLY what I want to see.
- Displaying specific lines from a text file (using $File), even when I don't know where in the file those lines occur!
Since it is built on the C++ Regex Engine, this plugin has been released under the GNU General Public License (GPLv2). You are free to use it for personal or commercial purposes, and may distribute it freely, as long as the license and source code accompany it. You may also use it in your own derivative works, so long as you adopt the same license and make the source code freely available.