User Tag List

Results 1 to 3 of 3

Thread: How can I parse the text from a specific HTML tag?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I parse the text from a specific HTML tag?

    Hey, folks!

    In working on my document search project, instead of displaying the file name of what the Search object found in its index search, I want to display the actual topic of that HTML page (which is more reader-friendly).

    Each of these topics are in a <Div> header, such as:

    <div class="Chapter_Title"><a name="510321">Setting user preferences</a></div>


    They are not always "Chapter Title" markers, but are always within a Div HTML marker.

    How would I parse this specific text out of the HTML file?

    Thank you very much, as always!



    Most graciously...

    RGBreality

  2. #2
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I parse the text from a specific HTML tag?

    If you have MMF2-Pro, you can use the Regular Expression object.

    I have no idea how it works within MMF, but the regular expression you want is probably something like:
    Code:
    <div class="[^"]*"><a name="[^"]*">(.*?)</a></div>

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I parse the text from a specific HTML tag?

    Or if you have Standard (some guys seems to often forget people had NOT all the Developer version of MMF2.....)

    Pass the text to be parsed to a .net Script input, in this case, as .net Script Input can call a .net Assembly intended to use Regular Expressions via .net Framework, and, callback by MMF2 with a .net Script Function action.

Similar Threads

  1. How to remove specific text in a edit box
    By Eugene_Bosman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th August 2012, 01:01 PM
  2. I need to parse some html and extract text
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th September 2011, 03:25 PM
  3. How can I parse the first line of text in a file?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th October 2010, 08:47 AM
  4. Help Get specific line text
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th February 2010, 09:17 PM
  5. Parse a text file
    By kungsangun in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th March 2008, 03:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •