I know nothing about regular expressions but I suddenly have a need. Can
someone please help me? I have a CF page that spits out a javascript
function using UUID's (along with the rest of the regular HTML page code)...
there are about 20-30 functions on my page. They are the same javascript
function with a different UUID passed to them. How do I turn this:
<a href='javascript:showPic("F2756593-0DDB-4C4C-B2474CA204C08ED3",640,480)'>
....into this:
showPic("F2756593-0DDB-4C4C-B2474CA204C08ED3",640,480)
....using REGEX. For extra credit, what would be the easiest way to do a
cfhttp and parse the entire page of HTML into a list of the functions. I
want to pull out all of the javascript functions in the code to create a
pipe separated list, to look something like this:
showPic("someUUID-1",640,480)|showPic("someUUID-2",640,480)|showPic("someUUI
D-3",640,480)|etc...
I'm using CF5 on Windows 2003 Server.
Thanks in advance,
Steve
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/RegEx/message.cfm/messageid:966
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21