Link | mm_wordcount |
Author | Miles Xx |
Category | String |
Version | 8.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 05 May 2006 |
Updated | 30 Jun 2006 |
More by this author... |
This tag, courtesy of a lil help from the lasso community, computes the number of words in a given string.
[mm_wordcount: -string='The Quickbrown Fox...'] or [mm_wordcount: -string=(field:'somefieldvalue')]
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
(replace: ' - ', '') & (replace: ' , ', '') & (replace: ' & ', '') & (replace: ' ? ', '') & (replace: ' % ', '') & (replace: ' $ ', '') & (replace: ' # ', '') & (replace: ' @ ', '') & (replace: ' * ', '') & (replace: ' ! ', '') & (replace: ' > ', '') & (replace: ' < ', '') & (replace: ' / ', '') & (replace: ' \\ ', '') & (replace: ' { ', '') & (replace: ' } ', '') & (replace: ' [ ', '') & (replace: ' ] ', '') & (replace: ' | ', '') & (replace: ' = ', '') & (replace: ' + ', '') & (replace: ' ( ', '') & (replace: ' ) ', '') & (replace: ' _ ', '') & (replace: ' . ', '') & (replace: ' ...', ''); return: (string_findregexp: #v_text, -find='(?:\\w+)')->size; /define_tag; ?>
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft