-
02-22-2012, 09:52 AM #1Limited Access Member
- Location:
- Denver
- Join Date
- Apr 2008
- Posts
- 90
- FM Version
- Filemaker Pro 9, 11
- Skill Level
- Intermediate
- OS
- Windows & Mac
- Rep Power
- 0
Finding and deleting text within symbols within a single field...
Hi,
We have a issue we are trying to resolve.
We have imported information from WebHelpDesk. One of the fields is formatted as such:
<note date="04/18/2011 7:37 pm" author="dsimons" type="tech" time="15" rate="No Rate">I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.
We would like to run a calculation or a script to get rid of most of what is in that field.
Example: We would like to find and delete the symbol <> and all of the text in-between. Only in that field.
Original (Bold being what we want to strip out): <note date="04/18/2011 7:37 pm" author="dsimons" type="tech" time="15" rate="No Rate">I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.
Modified (This is what we want to keep): I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.
Is this possible with a calculation or a script of some kind. Right now, we manually remove the information. With thousands of files, that is no longer an option.
Thanks in advance,
Ken
-
02-22-2012, 10:15 AM #2Senior Moderator
- Location:
- Connecticut
- Join Date
- May 2001
- Posts
- 2,077
- FM Version
- FileMaker 10A Server 10
- Skill Level
- Developer
- OS
- Windows & Mac
- Rep Power
- 50
Re: Finding and deleting text within symbols within a single field...
Of course before you do anything back up your file
If a calculation
Middle (YourTablaName::YourFieldName ; Position (countvalues::NoteField ; ">" ;1; 1 )+1 ;500 )
//Note 500 is amount of characters to show , maybe less , but if more that number will need to increase
In a Script
Set Field [YourTablaName::YourFieldName] ; Position (countvalues::NoteField ; ">" ;1; 1 )+1 ;500 )11 years at Forum, and still at it
Robert Schaub
-
02-22-2012, 10:42 AM #3Limited Access Member
- Location:
- Denver
- Join Date
- Apr 2008
- Posts
- 90
- FM Version
- Filemaker Pro 9, 11
- Skill Level
- Intermediate
- OS
- Windows & Mac
- Rep Power
- 0
Re: Finding and deleting text within symbols within a single field...
So, this is basically saying: In this field, "Notes", find "<" and ">" and delete everything in-between?
-
02-22-2012, 10:46 AM #4Senior Moderator
- Location:
- Connecticut
- Join Date
- May 2001
- Posts
- 2,077
- FM Version
- FileMaker 10A Server 10
- Skill Level
- Developer
- OS
- Windows & Mac
- Rep Power
- 50
Re: Finding and deleting text within symbols within a single field...
Kind of... you see the position in the calc. It is looking to see what number space it occupies.
the Right statement is saying start in position where the > is plus 1 space and give me what is in
the next 500 characters.11 years at Forum, and still at it
Robert Schaub
-
02-22-2012, 11:02 AM #5Limited Access Member
- Location:
- Denver
- Join Date
- Apr 2008
- Posts
- 90
- FM Version
- Filemaker Pro 9, 11
- Skill Level
- Intermediate
- OS
- Windows & Mac
- Rep Power
- 0
Re: Finding and deleting text within symbols within a single field...
Do you have an example of the result? Of what we will possibly be looking at after running the script or calc?
Thanks for all the help by the way. Very appreciated.
-
02-22-2012, 11:06 AM #6Senior Moderator
- Location:
- Connecticut
- Join Date
- May 2001
- Posts
- 2,077
- FM Version
- FileMaker 10A Server 10
- Skill Level
- Developer
- OS
- Windows & Mac
- Rep Power
- 50
Re: Finding and deleting text within symbols within a single field...
I had them unplug the keyboard and flip it upside down. They were done shooting for the end of the day so I told them to go to radio shack and buy a chap USB key board. And to call up the chain to the regional manager.
11 years at Forum, and still at it
Robert Schaub
-
02-22-2012, 11:35 AM #7Limited Access Member
- Location:
- Denver
- Join Date
- Apr 2008
- Posts
- 90
- FM Version
- Filemaker Pro 9, 11
- Skill Level
- Intermediate
- OS
- Windows & Mac
- Rep Power
- 0
Re: Finding and deleting text within symbols within a single field...
LOL. Ok. Thanks...
-
02-22-2012, 12:20 PM #8Senior Moderator
- Location:
- Connecticut
- Join Date
- May 2001
- Posts
- 2,077
- FM Version
- FileMaker 10A Server 10
- Skill Level
- Developer
- OS
- Windows & Mac
- Rep Power
- 50
Re: Finding and deleting text within symbols within a single field...
This will illuminate the guess of how many characters remain after the >
Middle (Yourtable::YourField ; Position (Yourtable::YourField ; ">" ;1; 1 )+1 ; Length(Yourtable::YourField) - Position (Yourtable::YourField ; ">" ;1; 1 )+1 )11 years at Forum, and still at it
Robert Schaub
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads - The answer to your question may be in one of these posts!
-
Deleting text from a field before (or after) a given string
By ghostwriter in forum FileMaker Pro 8.5Replies: 2Last Post: 04-09-2010, 07:39 PM -
Multiple background colors in a single text field (or some other solution)
By owangolama in forum FileMaker Pro 9Replies: 5Last Post: 03-01-2010, 08:11 AM -
Button for single field text format script
By afrodite in forum ScriptMaker and ScriptingReplies: 1Last Post: 05-03-2009, 03:10 PM -
Attaching links and scripts to single words in a text field
By polarpro in forum Layouts and DesignReplies: 4Last Post: 03-04-2009, 02:43 PM -
Finding email addresses (no worky due to symbols)
By wes plate in forum Find, Sort and SearchReplies: 4Last Post: 02-13-2004, 05:42 PM



Reply With Quote




Bookmarks