- To find substrings, use the StringSearcher transformer or the @FindString or @FindRegEx built-in functions
- To replace substrings, use the StringReplacer transformer or the @ReplaceString or@ReplaceRegEx built-in functions
Showing posts with label built-in functions. Show all posts
Showing posts with label built-in functions. Show all posts
Monday, 26 February 2018
Finding and replacing text
DateTimeParse: String to Date/Time
To convert a String attribute containing a date or time text to a Date/Time attribute, use the @DateTimeParse built-in function.
To automatically adjust for number overflow (e.g. 32-Jan), always use 'repair' as its third argument, e.g.:
@DateTimeParse(@Right(@Value(fme_basename),16),%H_%M %d_%m_%Y,repair)
To automatically adjust for number overflow (e.g. 32-Jan), always use 'repair' as its third argument, e.g.:
@DateTimeParse(@Right(@Value(fme_basename),16),%H_%M %d_%m_%Y,repair)
Subscribe to:
Posts (Atom)
Combine Raster Bands
To combine multiple single-band rasters into a single multi-band raster, use the RasterBandCombiner transformer. For example, combine the ...
-
To find substrings, use the StringSearcher transformer or the @FindString or @FindRegEx built-in functions To replace substrings, use the...
-
To split a string into its components using Regular Expressions, you can use the StringSearcher transformer. In the [Contains Regular Expre...
-
To convert a String attribute containing a date or time text to a Date/Time attribute, use the @DateTimeParse built-in function. To autom...