Mark A Kruger wrote:
>
> I need the expression part to allow for letters, numbers, spaces and
> quotation marks.... Can someone give me that? I tried
> [=""::space::a-zA-Z1-9]+--> ... but I forgot how to get at the space... (I
> hate Regex :).
Mark .. \s should allow for any whitespace, including tabs, carriage
returns, etc. But if you just want "space" characters, then just use a
space in the regex.
So.... maybe something like this:
<cfset content = "My sample <text>">
<cfset result = reFind("[^\w ""]",content)>
<cfoutput>#result#</cfoutput>
Should return 0 if it doesn't find any "bad" characters.
The above returns "11" cuz it finds the <
Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259922
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4