rereplace(string, "([^.]+)[^\]+", "\1"); Just a quick draft -- it means grab everything up to the dot, keep that, and throw away everything else up to the backslash. Untested, YMMV, etc.
HTH. --Ben Nick McClure wrote: > It has been a long time sense I've done regular expressions. Can somebody > give me an expression that will take a string like this: > > > > [EMAIL PROTECTED] > > > > And turn it into this > > > > AA\username > > > > For some reason I just can't figure this out. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:185479 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
