Welcome, Guest. Please Login
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
Pages: 1
Send Topic Print
Trimming strings (Read 1797 times)
Mark Anderson
YaBB Administrator

User - not staff!

Posts: 5689
Southsea, UK
Trimming strings
Oct 12th, 2012, 5:46am
As most here - myself included - aren't expert in regular expressions, so I've updated some aTbRef pages (;links below). These have examples with the necessary regex for trimming leading/trailing spaces from $Text, strings and lists. Also covered is stripping enclosing quotes from strings using .substr(). See:
(Codes were tested in v5.11.2)
Back to top

Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print