Lasso Soft Inc. > Home

[lp_string_getNumeric]

Linklp_string_getNumeric
AuthorBil Corry
CategoryString
Version8.x
LicensePublic Domain
Posted19 Jan 2006
Updated19 Jan 2006
More by this author...

Description

Returns the numeric characters in a string.

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.

[

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

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