Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search and replace cf5

Status
Not open for further replies.

cbushy

Technical User
Joined
Jul 17, 2002
Messages
7
Location
CA
i have a field 'form.memo'

which sends a body of text to be posted to a database.

how do i get cf to look at the text and find [link;title;url] where link, title and url can be anything

basicaly find anything between '[' and ']' and turn it into a var


Cheers Chris
 
I'm not sure what you're trying to do here, if you are trying to get the user to input a link, title and url you should probably create separate form fields for each of the data items.
 
<cfset i = Find(&quot;[&quot;, form.memo)>
<cfset info = Mid(form.memo, i, Find(&quot;]&quot;, form.memo)>
Erwin Oosterhoorn
Analyst Programmer,
Roller hockey'er, biker,
ice hockey player/fan.
 
cheer man very nice indeed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top