Software Venture Consulting
ToMarket

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

ParseData ( theText ; theStartTag ; theEndTag ; theOccurance)

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 3.1  (24 votes)
  Discuss this Custom Function

Hal Gumbert, MacFL
http://www.macfl.com

Extracts text based on a start tag, end tag, and occurance.

Sample Input:
ParseData ( $thePaymentEmail ; "¶Amount: " ; "¶" ; 1 )
Sample Output:
$30.00


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

This is great for extracting text within other text. It's especially good for extracting text from forms that are emailed. For example:

If a variable $thePaymentEmail contains:
From: foo@bar.com
To: foo@bar.com
Subject: Payment Info
Amount: $30.00
Payment Type: Discover
Item: Rockem Sockem Robot
Item: Godzilla Figurine
Order Date: 20060909

ParseData ( $thePaymentEmail ; "¶Amount: " ; "¶" ; 1 ) will return '$30.00'.

ParseData ( $thePaymentEmail ; "¶Item: " ; "¶" ; 1 ) will return 'Rockem Sockem Robot'.

ParseData ( $thePaymentEmail ; "¶Item: " ; "¶" ; 2 ) will return 'Godzilla Figurine'.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

Is it possible to get an example file ? I am trying to extract data from the stock price from "http://finance.yahoo.com/q?s=" & Stock::Ticker_Symbol to get the latest stock price into a FileMaker field. I have created a test file, but was unable to get it to work. My email address is carlstarus@msn.com
I would greatly appreciate your help.
Thank you and Regards,
Carl

Carl Riedel, Croydon, United Kingdom
October 01, 2009 2:44pm

This function saved me a lot of time parsing HTML pages to extract information and insert into FileMaker fields. Realy useful and easy to use. Once understood, this is beautifuly simple.

Carl Riedel, Croydon, UK
November 30, 2009 7:38am

Thanks!
It works well, although when I tried to use it as a script trigger it failed to find the value.
Oddly, the trigger method works fine if I leave script debugger on. FYI I found this on a script example in the MIT scraping.pdf, so it is likely the script needs a tweak.

Karen, USA
March 01, 2011 2:20pm

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 7 + 6 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. list.intersect (listA; listB)
  (Mon, May 14, 12:43pm)
2. WeekStart ( weekOfYear ; year )
  (Sat, May 12, 8:42am)
3. PercentToWords (FIELD)
  (Thu, May 10, 3:16pm)
4. PercentToText (FIELD)
  (Thu, May 10, 2:37pm)
5. StripReserved( text )
  (Wed, May 02, 6:05pm)
6. ListBaseTables
  (Wed, May 02, 3:48pm)
7. ValidEmail( theEmail )
  (Wed, May 02, 7:27am)
8. UltraDate (Text; LongDate_or_DateDigit)
  (Wed, May 02, 6:07am)

RSS Feed of Custom Functions