RemoveExtraCrLfs ( )

Function stats

Average user rating
532
396
9999
Support
FileMaker 10.0 +
Date posted
16 July 2016
Last updated
16 July 2016
Version
Recursive function
Yes

Author Info
 David Moyer

6 functions

Average Rating None

author_avatar



 

Function overview

Prototype

RemoveExtraCrLfs  ( text )


Parameters

text  The text to be trimmed


Description

Tags:  Text Formatting  

Removes any double-spaces, triple-spaces, etc. from the text you provide.

Examples

Sample input

RemoveExtraCrLfs ( "ABC¶¶DE¶¶¶¶FG¶¶HiJkLMN¶O¶¶¶" )


Sample output

ABC¶DE¶FG¶HiJkLMN¶O¶

 

Function code

If ( PatternCount ( text; "¶¶" ) > 0;
RemoveExtraCrLfs(
Substitute ( text; "¶¶"; "¶" )
);
text
)

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/396

    Prototype: RemoveExtraCrLfs( text )
    Function Author: David Moyer (http://www.fmfunctions.com/mid/532)
    Last updated: 16 July 2016
    Version: 1.1

*/
// ===================================

 

 

 

 

 

 

 

Top Tags

Text Parsing  (33)
List  (31)
Date  (28)
XML  (26)
Format  (23)
Sql  (22)
Dev  (20)
Debug  (17)
Layout  (15)
Interface  (15)
Text  (14)
Variables  (12)
Filter  (11)
Layout Objects  (11)
Design  (10)
Array  (7)