This should work: reReplace(myVar,"([;/])"," \1 ","all")
It uses a technique called back references, which allows you to use the strings that match the regex in your replacement string (that's what the "\1" is). On 3/28/07, Scott Stewart <[EMAIL PROTECTED]> wrote: > I've got a variable which is a document descriptor (literally, journal, book > etc.) in some cases it can contain a slash (/) or a semicolon. > > What I need to do within the REReplace is find every instance of a slash or > a semicolon and put a space before it and a space after it.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274048 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4