|
-
Apr 15th, 2010, 02:56 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Multiple Replace Function Order
I want to do a multiple replace on one field in a table. I want to replace apos; and ampapos;. What would the order have to be to first replace ampapos;?
Do I do replace(replace(description, 'apos;', ''''),'ampapos;', '''') or
replace(replace(description, 'ampapos;', ''''),'apos;', '''')
thank you.
-
Apr 15th, 2010, 08:50 PM
#2
Re: Multiple Replace Function Order
replace the longer word first so you are not left with unreplaced 'amp' tokens.
-
Apr 16th, 2010, 08:19 AM
#3
Thread Starter
Hyperactive Member
Re: Multiple Replace Function Order
Thank you. What would the replace statement look like in order to replace those first?
-
Apr 16th, 2010, 10:21 AM
#4
Re: Multiple Replace Function Order
Try your second line of code in post #1
-
Apr 16th, 2010, 10:24 AM
#5
Thread Starter
Hyperactive Member
Re: Multiple Replace Function Order
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|