[lp_string_getNumeric]

Description

Link: [lp_string_getNumeric]
Author: Bil Corry
Category: String
Version: 8.x
License: Public Domain
Posted: Jan. 19, 2006
Updated: Jan. 01, 0001
More by this author...
Returns the numeric characters in a string.

Parameters

-string string, required The string to pull the numeric characters out of.

Sample Usage

lp_string_getNumeric:'1x2x3x4x5'; // returns 12345
						

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
[

define_tag: 'lp_string_getNumeric',
	-description='Returns the numeric characters in a string.',
	-priority='replace',
	-required='string';

	return: (string_findregexp: (string: #string), -find='\\d')->(join:'');

/define_tag;

]

 

Related Tags



Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net