Link to home
Start Free TrialLog in
Avatar of Grover McBroom
Grover McBroom

asked on

Strip everything between all brackets and parentheses

I need to  strip everything between all brackets and parentheses, including brackets and parentheses so that the ntext BIO displays without that info. I can't seem to find a way to do this correctly using ColdFusion's 'reReplaceNoCase'.

BioInfo.BIO is Datatype ntext
SQL 2000 and ColdFusion 8.
Variable "NAME" is from a FORM post
<CFQUERY NAME="BioInfo" DATASOURCE="BIOFILES">
   SELECT NAME,BIO
   FROM CELEBRITY_BIOS
   WHERE NAME = '#NAME#'
</CFQUERY>

<CFOUTPUT Query="BioInfo">
  #ParagraphFormat(BioInfo.BIO)#
</CFOUTPUT>

Open in new window

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mark Ely
Mark Ely
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Grover McBroom
Grover McBroom

ASKER

That seems to have done it, missed that one before. Thanks for your great help.