Login
`
Templates, Tools and Utilities
|
||
Icetips Article
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, 8:07 am This article has been viewed 35221 times.
|
|