Copy & paste web page info

i somewhat new to coldfusion and i can't figure out how to do something..
lets say there is a web page with these texts
hi abc bye
hi 123 bye
hi a1b2 c3 bye
i want to create a page that will go to a specific web page and search throught that web page for the word hi and then grab the following text up to the word bye... then it'll place those text in a file... so for example it'll copy only the text
abc
123
a1b2 c3
...and paste them in a file
is this possible??
can someone please point me in the right direction, i been at this for almost two days!
thanks in advance.

cfquery_select_name wrote:
i want to create a page that will go to a specific web page
So you want to make an HTTP request for a web page, that would be the purpose of the <CFHTTP....> Tag.
cfquery_select_name wrote:
 search throught that web page
Then you want to find text in the content returned from the request.  the find() and refind() functions (most likely the later) would be helpful here.
cfquery_select_name wrote:
 ...and paste them in a file
Finaly you would like to write output to a file.  The <cffile action="write"...> would be the first choice for this task.
That just leaves the actual searching.  Like I said I would probably try a REFIND that uses regular expression syntax to find the desired text.  Something like this untested example off the top of my head should get you started.
<cfset match = refind(searchString,"hi(.*?)bye",1,true)>
<cfdump var="#match#">
Then finally a loop over this code to find each instance of the desired string.
cfquery_select_name wrote:
 is this possible??
Quite possible, it should just take some trail and error and looking at the appropiate documentation.

Similar Messages

  • Copying a Web page

    Hi,
    I have a quick question which is not related to Java. How do you copy the web page to be able to use it in a Powerpoint Presentation? I know it's print screen then something else, but I can't remember.
    thank you

    Or
    File
    Save As...
    Or
    Edit
    View Source
    File
    Save As...
    (this way doesn't try to save all the pictures and crap everywhere)
    Doing PrintScrn saves whatever is on the screen to the clipboard (alternative, alt-PrintScrn saves the active window instead of the whole screen). You then need to do something with it. Usually paste into Paint or somewhere, and save as an image (jpg, please!).
    Give that a go,
    Radish21

  • Copy / Paste / Delete Pages and group pages

    MUSE would be great if  we could copy /paste /delete pages and / or group pages
    Regards

    Have you done much JavaScript programming in Acrobat? Are you asking for the specific code or for guidance as to what methods you need to use? All of what you listed is possible with JavaScript.
    George

  • Deleting past web pages in Safari Windows

    I have encountered a problem with Safari 3.0.2 on Windows.
    I have deleted my history in Safari, but whenever I try to type in a web page, google for example, as soon as I hit "G" it comes up with a list of past web pages I have been on beginning with a "G". I am wondering how I delete all of these. If you have information on how to delete these completely from my computer as well it would be much appreciated.
    Thank you!

    Yes, that is a tricky problem. Here is the solution. Do not have any bookmarks because that is what shows up there after you delete the history.
    I have encountered a problem with Safari 3.0.2 on
    Windows.
    I have deleted my history in Safari, but whenever I
    try to type in a web page, google for example, as
    soon as I hit "G" it comes up with a list of past web
    pages I have been on beginning with a "G". I am
    wondering how I delete all of these. If you have
    information on how to delete these completely from my
    computer as well it would be much appreciated.
    Thank you!

  • I can right click to copy a web page link, but it will not let me rick click again to paste the link to the body of text

    I use firefox as my web browser. My start page is www.msn.com where I can access hotmail. Once I have logged into hotmail and click on (Create) new mail I have this problem. If I go to a web page link, ie; www.msn.com, I can highlite the address and then right click to copy. When I go to the body of the email I'm working with, and right click again to paste I DO NOT GET A SCREEN THAT HAS PASTE ON IT. I tried this again by logging into Internet Explorer signed into my hot mail account and tried it again. It works in IE with hotmail. So I feel this problem has been encountered with a firefox update, because I did not have the problem in the past.

    Hi,
    You may have to make sure that '''Disable or replace context menus''' is enabled (tick) in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Content''' > '''Advanced''' (on the right end of '''Enable Javascript'''). [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Content%20panel Options > Content]
    [https://support.mozilla.org/en-US/kb/Options%20window Options]
    If the problem persists please check in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]

  • Copy and paste web page

    Hi,this is my first post. When using Internet Explorer on the PC I can copy and paste anything I highlight but in Safari on my Mac it only copies the text so when i paste into Word I only get the text. Is there a way of setting Safari up so that it copies the images as well.
    Thanks David

    You cannot make any changes to how Safari handles copy/paste behavior. But perhaps you can make use of screenshots or printing an entire web page to PDF.
    If you wanted to send somebody a small portion of a screen with images, text, etc., you could hit Command-Shift-4 then use the mouse to select an area of the screen that you want to capture. After you've done this, you'll see "Picture 1" on your Desktop which you can easily email to somebody else (just drag "Picture 1" from the Desktop onto the Mail icon in your Dock).
    If you want to capture the entire web page to send to somebody, try Command-P to bring up the print dialog, then in the lower-left you'll see options for PDF - choose "Save as PDF". Once again, you'll be able to send the result file by email.
    I use both of these techniques on a regular basis. One of the things that's especially nice about them is their ability to capture what you see exactly. Unlike Internet Explorer copy/paste, which might not look the same once you put it into an email, or the receiver's email client might not display the message as you saw it. None of this happens when you send a fixed image - what you see is what the receiver will see.
    Kaan

  • Copying from Web Page

    My bank statement is accessible from the web. In Excel I can copy several rows and columns from that Web page and the paste them directly into my spreadsheet, where they are appropriately distributed across the various columns and rows.
    When I try this in Numbers, they are distributed down a single column. How can I get them to distribute across several columns and rows?

    Hello
    - 1 - Look in the other thread, I posted a revised script.
    - 2 - It appears that you passed 16 values.
    So the original table was
    1 row of 16 columns
    or
    2 rows of 8 columns
    or
    4 rows of 4 columns
    or
    8 rows of 2 columns.
    or
    16 rows of 1 column
    The script can't guess which it is really, so it's your duty to type the correct columns number.
    Here is a short script allowing you to save the clipboard's content in a text file.
    Run it then send me the file attached to a mail at:
    koenig PERIOD yvan AT tele2 PERIOD fr
    I would be able to see if there is something I missed in your datas.
    A screenshot of the original table would be useful too.
    --[SCRIPT]
    tell me to activate
    set x to the clipboard as Unicode text
    set fp to (path to desktop as Unicode text) & "clipboard-content"
    writeData(fp, x, {_append:false})
    on writeData(fp, x, {append:append})
    text fp: output file path
    data x: anything to be written to output file
    boolean _append: true to append data, false to replace data
    local a
    try
    open for access (file fp) with write permission
    set a to fp as alias
    if not _append then set eof a to 0
    write x to a starting at eof
    close access a
    on error errs number errn
    try
    close access file fp
    on error --
    end try
    error "writeData(): " & errs number errn
    end try
    end writeData
    --[/SCRIPT]
    With this one, no need to save it as an app.
    Open it in the script editor
    copy the table to the clipboard
    Click the green button named "Exec" or "Run" (the 3rd one)
    Yvan KOENIG (from FRANCE dimanche 28 octobre 2007 12:33:23)

  • Copy pasting web address into emails on iPad

    I use to be all to be looking at a web page and select all, copy, and then paste the URL in an email on my iPad. When I do it now when I paste nothing shows up. How can I copy and then paste URL in my email.
    Thanks
    Rick

    Welcome to the discusssions.
    Touch a spot in the URL in the browser address bar until you see the magnifying glass (as though you're going to fix a typo). When you let go, you should see the Select All option appear, then after you tap that, copy. It's a bit tricky because the keyboard keeps popping up, but just ignore that.
    Then go to your email, hold down where you want to put the URL till you see the magnifying glass, then let go and you should see paste.

  • Cool copy/paste web app for iPhone

    Hi, check the Clippy web app from http://clippy.soft-use.com/ that supports copy/paste between webpages in iPhone.
    Its really cool.
    Here is a link for the Youtube video: http://www.youtube.com/watch?v=v_N6JOY4TFg
    It can copy images and url links from the webpage. it stores all your clips online so that you can access them later from PC/Mac.
    Its really worth it, specially after no news from apple for copy/paste..

    Well its not at all bad, and i would say that the interface it a lot better than previous ones.
    and even you email link to someone, you can't specify the text that you are refering to so you can be more specific and it also contains internal links and images that makes it to the point..

  • Copy & Paste whole pages in Thumbnail View?

    Hi guys,
    I've just done the latest Pages update in Mavericks 20/01/2014 and was hoping to see the copy&paste optyion return but to no avail....
    Does anyone have an idea if/when they will be doing so?
    I have 100 teachers with MacBooks at our Secondary School who love Pages '09 and I'm quickly losing their support for Macs due their documents in Pages being changed so much since the last update to Mavericks.
    Would love to know if there is a light at the end of the tunnel???
    Many Thanks
    Ross

    Use Pages '09 it is still in their Applications/iWork folders.
    If they don't want Pages 5 to open, archive or trash it.
    Peter

  • I keep getting this message:DEBUG flag to true in config.php when I try to copy/paste to Pages on my iMac or upload a picture to a website chat forum. I don't know what it means or how to correct it. I am running an iMac desktop with Lion 10.7.3 with 2 GB

    I keep getting this message the past week when I try to copy/paste text to Pages or upload a picture to a website chat forum. I don't know what it means, or how to correct it. I'm running a 2009 iMac desktop with OSX Lion 10.7.3  with 2 GB  Any help appreciated.
    Angie

    Running the Lion Os requires a MINIMUM of 2 GB of RAM, as you have.  However, with that little RAM the computer will have trouble with many memory based tasks, such as copying and pasting.  You really need to increase the amount of RAM your computer has in order to increase its speed and performance.  Now, when a task requires more RAM than your system has available then the OS will use some harddrive space temporarily instead.  This is called "Virtual Memory."  Is it possible that at this time that your harddrive is very full relative to its stated capacity, so that even "virtual memory" is not really available?  If that is the case, you really need to cleanup your harddrive by deleting a fair number of less used files.
    Hope this helps

  • Muse crashes during copy & paste of page title in page properties

    Copying and pasting a page title from one page to another, causes a crash on the second or third paste.

    Hi Zak,
    Thanks so much for the reply. Here are the answers:
    Where was the text originally copied from?The text was manually typed into the Page Title field in Page properties, then copied from there into the same field for other pages
    Is the text pasted and then editing?Yes. The original line is 'Kingsdown Holiday Homes - Self Catering Chalet Rental at Kingsdown Park, Kent | Chalet 1b', and after pasting I change the Chalet number or words after the '|'
    Is this referring to the Page Title in the Options section of the Page Properties dialog?I am accessing the page properties through CTRL-Click on each page, from the Plan view
    How was the Page Properties dialog opened (from Page menu, from context menu in Plan view, from context menu in Design view, other)?See above
    All the best,
    Andrew

  • Adobe Acrobat XI Pro - Copy Paste PDF Page to PPT Slide using VBA

    Hi,
    Please find the requirement -
    Need to read a pdf file (pdf file may contains 10-15 pages) from powerpoint (using VBA), go to a particular pdf page, copy the entire page and paste on the ppt slide. Can anyone share the vba code for this. Thanks.
    Regards,
    Prasanta

    Can you do it without VBA? I can't see anything designed to make this work except screen shots, which are nothing to do with Acrobat specifically.

  • How can I copy/paste a page from one pages document into another pages document?

    I have read the directions in the manual, but when I go to the document where I want to put the page the paste function is greyed out.  I assume this has something to do with styles, but can't find what to do. 

    You got it.
    Paste is greyed when we try to paste a page from a WP document into the thumbnails area of a Layout one.
    It's active if we try to paste in the pages area.
    In the document's tool bar, there is an icon with a + symbol at top left.
    In WP documents it's named Sections, In Layout ones its named Pages.
    Yvan KOENIG (VALLAURIS, France) mercredi 26 octobre 2011 17:50:55
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How to display URL on PDF copied from web page;Does from Safari browser/Not Firefox

    When I make a PDF document from a web page when in Safari, it automatically puts the URL in with the document but not when I'm using Firefox.

    What is the format of that online document - is it an image, or is it perhaps already a PDF document?  If so, you can right-click on it and save it to your local disk.

Maybe you are looking for

  • Issue in Planning file entry creation for materials

    Hi all, There are some materials for which there are no planning file entries inspite of having MRP data and valid MRP type. The reason (1) could be that those materials might have been created before MRP was activated for that plant. Another reason

  • Problems with Notes on iPad

    Why does my iPhone shows 10 Notes, but my iPad only show 5 of the 10?

  • How to call a standard page from a custom BSP-iView by URL

    Dear readers, I have to implement a scenario as described in the guide "Administration of the Business Package for SAP CRM 4.0", chapter "Object Links in the Portal" scenario 1 and/or 2 (page 404). In my case, a custom iView-BSP lists certain busines

  • Newer version of Mac Mail?

    Don't ask how, but I somehow deleted MAIL (and a bunch of other applications) from my computer, and had to reinstall all of the software. Now, when I click on the mail icon, it says "you cannot use this version of the application Mail with this versi

  • 200560 timeout error using DAQmx

    I had 2 separate DAQmx tasks working concurrently on the same block diagram.  The two tasks were not triggered, but both were starting at roughly the same time, give or take a few samples. Next, I wanted to clean up my work and make 2 separate sub VI