When doing this, you don't need the v option, as it continues on the next character. You can simulate g for search with a While function that assumes some starting value of $string and $match. So there's no equivalent of this for a search only, except the v option, which isn't the same thing. ] out )This function only has a search for a single match, and the g option only works on replace. String = Case ( IsEmpty ( find ) remValues remString ) RemString = Right ( string Length ( string ) - Position ( string find 1 1 ) ) RemValues = RightValues ( string ValueCount ( string ) - 1 ) Originally this plugin was developed by Goya to allow them to extend their BaseElements product with a single function that performs, dialog and xslt functions not otherwise available inside FileMaker. While ( Length ( string ) > 0 įind = BE_RegularExpression ( string $match "m" ) The BaseElements plugin is a free and open source plugin, available to everyone to extend the built in functions of FileMaker Pro. The above example usesBE_ValuesUnique because the default leaves empty lines where the criteria doesn't match, so you'd have as many "values" as there were originally files, but anything not matching the criteria would be empty lines in the list. S - dot matches all characters, including newlineBE_RegularExpression ( $list "(?:\\S(?!))+$" "igm" )īE_ValuesUnique ( BE_RegularExpression ( BE_FileListFolder ( $path ) "^.*fmp12$" "v" ) )get a list of all the files that end in ".fmp12" filterValues : The values to remove from textToFilter - caseSensitiveBoolean : Defaults to True. Parameters: - textToFilter : The list of values to start with. expression : a "perl compatible" expression - see examples. Does the opposite of the FilterValues function : it takes the textToFilter parameter, and removes anything in the filterValues list and returns the remaining values. BE_RegularExpression BE_RegularExpression(text expression )Ī perl compatible regular expression testing function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |