Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Strip characters out of a string 2001-11-05 -- Dennis Evans > How do I best take a string a strip hyphens and commas, etc... out?
you folks work too hard, use strtok,
for a string like
'This is - a t-est of - the -- hy-phens --- remo-val'
call,
Delimit = '-'
WorkStr = 'This is - a t-est of - the -- hy-phens --- remo-ve'
StripString(WorkStr, ResultStr, Delimit)
ResultStr will contain
'This is a test of the hyphens remove'
To remove - and spaces, set delimit to '- '
Today is November 21, 2024, 7:30 am This article has been viewed 35220 times.
|
|