Lasso Soft Inc. > Home

[stripSpChars]

LinkstripSpChars
AuthorStiti Samantaray
CategoryString
Version8.5.x
LicensePublic Domain
Posted19 Jan 2010
Updated19 Jan 2010
More by this author...

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.']

Source Code

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;
]

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft