This is really a question for the regex list where the guru's of regex hang.
That being said, I need a bit more about what you want. Are you saying
everything before the first quote, everything that is not quoted, or
something else. In regex you have to be very explicit.
If it's just from the start of the string till the first quote then this
will work
'^[^"]+'
The first carat says that you want to start at the beginning of the string.
The braces say that you want to work with one or more characters which will
be defined within the braces.
The carat inside the braces say that what ever characters come after it
inside the braces are negated. In other words, anything other than these
characters. The character next is a quote so the braces are saying any
character other than a quote.
The plus after the braces says to take the previous character, set (the
braces), or group (things inside parenthesis) and match them one or more
times.
This means that the regex will start at the beginning of the string and then
match any characters until you get to the quote. This match can then be
replaced with a blank ('') which will remove the match from the string. A
full example is:
rereplace(string, '^[^"]+', '')
If this is not what you were expecting, let me know-- Michael Dinowitz (http://www.linkedin.com/in/mdinowitz) President: House of Fusion (http://www.houseoffusion.com) Publisher: Fusion Authority (http://www.fusionauthority.com) Adobe Community Expert / Advanced Certified ColdFusion Professional ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3353 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
