[thelist] Cold Fusion and string manipulation
Seth Bienek - Web Consultant
sbienek at acep.org
Wed, 19 Jan 2000 14:25:31 -0600
Oops! Almost forgot to tell you-
A free 30-day Evaluation Version of Cold Fusion Studio is available for
download at:
http://www.allaire.com/download/
INVALUABLE for anyone working with Cold Fusion!
Seth
:) -----Original Message-----
:) From: Seth Bienek - Web Consultant [mailto:sbienek@acep.org]
:) Sent: Wednesday, January 19, 2000 2:13 PM
:) To: 'thelist@lists.evolt.org'
:) Subject: RE: [thelist] Cold Fusion and string manipulation
:)
:)
:) Hi Frank,
:)
:) Cold Fusion has several powerful string-manipulation
:) functions built right
:) in.. For example, you might look into using ReReplace for
:) some of that "Find
:) and replace" stuff..
:)
:) Here's an example:
:)
:) #ReReplaceNoCase("#pagecontent#", "ABC Corp.", "ABC INC.", ALL)#
:)
:) Would return the string defined in the variable
:) #pagecontent# with all
:) instances of "ABC Corp." replaced by "ABC INC.".
:)
:) Cold Fusion Studio has excellent built-in help, it covers
:) every Colf Fusion
:) tag as well as all functions, and is completely searchable
:) by keyword. I
:) use the built-in help in CF Studio more than both Forta
:) books combined
:) (Don't tell Ben!).
:)
:) Hope this helps,
:)
:) Seth
:)
:)
:) :) body just as
:)
:) :) -----Original Message-----
:) :) From: Frank [mailto:framar@interlog.com]
:) :) Sent: Wednesday, January 19, 2000 1:57 PM
:) :) To: thelist@lists.evolt.org
:) :) Subject: [thelist] Cold Fusion and string manipulation
:) :)
:) :)
:) :)
:) :) I'm from a Frontier background. One of Frontier's
:) greatest strengths
:) :) is that it can chew up strings to beat the band.
:) :)
:) :) Examples:
:) :)
:) :) Let's say (all other considerations aside) that I wanted
:) to replace
:) :) all <li> with say <image> <p class="">. Piece of cake. I've been
:) :) looking for such things in Cold Fusion. I notice that it's
:) :) phenomenal
:) :) at database manipulation, but doesn't seem so strong on strings.
:) :) Another example would be that I could replace all
:) incidents of "Abc
:) :) Corp." with "ABC INC." either in the template, or in the
:) :) body just as
:) :) processed. Another example would be to find/replace all
:) incidents of
:) :) "ABC" with "XYZ" in the database itself. I'm finding this to be
:) :) lacking in Cold Fusion
:) :)
:) :) My questions are
:) :)
:) :) 1) Are these abilities here in CF, and is it just my
:) :) inexperience/lack of deep knowledge that I'm running into,
:) :)
:) :) 2) Can this be done in CF, but lots of work-arounds are required,
:) :)
:) :) 3) Am I indeed noticing what truly is?
:) :)
:) :)
:) :) I'd be interested in hearing of any cool string manipulation
:) :) tips you may have.
:) :)
:) :) --
:) :) Frank Marion,
:) :) Loofah Communications;
:) :) framar@interlog.com
:) :) http://www.loofahcom.com
:) :)
:) :) _______________________________________________________
:) :) unsubscribe+options:
http://lists.evolt.org/mailman/listinfo/thelist
:) tip harvester: http://lists.evolt.org/harvest/
:) email archive: http://lists.evolt.org/archive/
:) http://evolt.org/ Workers of the Web, evolt !
:)
_______________________________________________________
unsubscribe+options: http://lists.evolt.org/mailman/listinfo/thelist
tip harvester: http://lists.evolt.org/harvest/
email archive: http://lists.evolt.org/archive/
http://evolt.org/ Workers of the Web, evolt !