Link | stripSpChars |
Author | Stiti Samantaray |
Category | String |
Version | 8.5.x |
License | Public Domain |
Posted | 19 Jan 2010 |
Updated | 19 Jan 2010 |
More by this author... |
This tag will strip bad characters out from the inputed string and will return the string without bad characters.
[stripSpChars: -string = 'Hi I\'m Stiti, working at Mindfire Solutions, India.']
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.
[//lasso /*---------------------------------------------------------------------------- [stripSpChars] This tag will strip bad characters out from the inputed string and will return the string without bad characters. Author: Stiti Samantaray, Mindfire Solutions, Bhubaneswar, India Last Modified: Jan 19, 2010 License: Description: This tag will strip bad characters out from the inputed string and will return the string without bad characters. Sample Usage: [stripSpChars: -string = 'Hi I\'m Stiti, ?working at Mindfire Solutions, ?India.'] Member tags Description: -string = Any text/string ----------------------------------------------------------------------------*/ If: !(Lasso_TagExists:'stripSpChars'); Define_Tag: 'stripSpChars', -Optional = 'string', -Type='String'; Local: 'filterString' = (String_FindRegExp: #string, -Find='[a-zA-Z0-9\\s-+%=.?*|$\'\"@&_:;(){}#<>]'); Return: (#filterString->(Join: '')); /Define_Tag; /If; ]
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft