[stripSpChars]

Description

Link: [stripSpChars]
Author: Stiti Samantaray
Category: String
Version: 8.5.x
License: Public Domain
Posted: Jan. 19, 2010
Updated: Jan. 19, 2010
More by this author...

This tag will strip bad characters out from the inputed string and will return the string without bad characters.

Parameters

-string string, optional Any text/string

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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[//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

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net