Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5275 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I need help from those of you more creative than myself.

Is there a way that a calculation can find every parenthetical phrase in a text field and move each one to the end of that sentence.

Example Input: "The patient's score was average (i.e. Full Scale IQ = 50th percentile) on the Wechsler Scales of Adult Intelligence."

Desired Output: "The patient's score was average on the Wechsler Scales of Adult Intelligence (i.e. Full Scale IQ = 50th percentile)."

Thanks for your help!

Edited by Guest
Posted

This would be a recursive operation and thus require either a custom function or a script. You also need to pay attention to nested/unbalanced parentheses.

See here for a starting point:

http://fmforums.com/forum/showpost.php?post/289685/

I am not sure what "the end of that sentence" means. If it's the end of the field, that's easy - but it's not so simple to determine the end of a sentence.

Posted (edited)

Yes, I would like to do this as a custom function. The text field will have numerous sentences, so I would like each parenthetical text moved to the end of it's respective sentence (i.e., the position just before the period where the phrase was found).

Edited by Guest
Posted

It's unfortunate that FileMaker still hasn't provided for Regular Expressions, with the ability to use Grep Tools where you can do pattern searches and replacements, like you would find in a program such as TextWrangler or BBEdit.

If this data is in text format and your are importing it, you might try a pattern search and replace such as;

find:

(.*)((i.e..*))(.*).

replace

132.

Lee

This topic is 5275 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.