
Regular Expression Functions
by Appian Corporation
Description
This Plug-in exposes Java Regular Expression string manipulation capabilities as Appian Functions. Very useful for validation rules and data manipulation on interactive SAIL forms.
Features
Datatypes provided: RegexMatch - has a string field representing the string found, a starting index for the string in the haystack and an ending index for the string in the haystack.
Regex Flags supported: i - case insensitive g - find all matches m - multiline search s - treats the entire string as a single line u - unicode aware search x - ignores comments starting with '#' and white spaces d - enables unix line mode
Functions provided: regexSearch - Searches for the selected pattern with the specified regex options and returns a list of RegexMatch Datatypes, accepts all regex flags. regexArraySearchIndexOfFirstMatch - Searches an array for a match and returns the first index of match found regexMatch - Indicates whether the regular expression finds a match in the input string, accepts all regex flags. regexInsertMatchMarkers - Finds the match or matches and surrounds them with starting and ending markers, accepts all regex flags. regexFirstMatch - Returns the first match of the regular expression within the input string, accepts all regex flags except 'g'. regexAllMatches - Returns all matches of the regular expression within the input string, accepts all regex flags. regexReplaceAll - Replaces all matches of the regular expression within the input string
Release notes
Depreciated RegexMatch CDT.
Updated RegexSearch to optionally return match groups, and updated return type to List of Dictionary.
Version history (5)
2.1.2
2.1.2
- Restructured internal jar to be more inline with other Appian plugins and configured to use gradle for future builds
- No functional changes
2.1.1
-Removed superfluous log output
2.1.0
-Fixed typo in function name regexmatch
-Fixed backward compatibility with 1.0.0
-Modified regexAllMatches, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexFirstMatch, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexMatch, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexInsertMatchMarkers, put FirstMatch boolean back in and made regexFlags optional, and defaults to the flags used in version 1.0.0
-Removed _r1_0 functions because their functionality is supported in the original function name again
2.0.2
-Added regexSearch function, supports a pattern, a search string, and regex options, returns an array of RegexMatch objects which contains the match, its starting position and ending position in the search string
-Added the RegexMatch data type
-Added regexAllMatches_r1_0, legacy function support
-Added regexFirstMatch_r1_0, legacy function support
-Added regexInsertMatchMarkers_r1_0, legacy function support
-Added regexMatch_r1_0, legacy function support
-Modified regexAllMatches, added regex options similar to those available in the new regexSearch function
-Modified regexFirstMatch, added regex options similar to those available in the new regexSearch function
-Modified regexMatch, added regex options similar to those available in the new regexSearch function
-Modified regexInsertMatchMarkers, removed FirstMatch boolean and added regex options similar to those available in the new regexSearch function
-General tweaks and optimizations
1.0 Initial release
2.1.1
2.1.1
-Removed superfluous log output
2.1.0
-Fixed typo in function name regexmatch
-Fixed backward compatibility with 1.0.0
-Modified regexAllMatches, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexFirstMatch, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexMatch, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexInsertMatchMarkers, put FirstMatch boolean back in and made regexFlags optional, and defaults to the flags used in version 1.0.0
-Removed _r1_0 functions because their functionality is supported in the original function name again
2.0.2
-Added regexSearch function, supports a pattern, a search string, and regex options, returns an array of RegexMatch objects which contains the match, its starting position and ending position in the search string
-Added the RegexMatch data type
-Added regexAllMatches_r1_0, legacy function support
-Added regexFirstMatch_r1_0, legacy function support
-Added regexInsertMatchMarkers_r1_0, legacy function support
-Added regexMatch_r1_0, legacy function support
-Modified regexAllMatches, added regex options similar to those available in the new regexSearch function
-Modified regexFirstMatch, added regex options similar to those available in the new regexSearch function
-Modified regexMatch, added regex options similar to those available in the new regexSearch function
-Modified regexInsertMatchMarkers, removed FirstMatch boolean and added regex options similar to those available in the new regexSearch function
-General tweaks and optimizations
1.0 Initial release
2.1.0
2.1.0
-Fixed typo in function name regexmatch
-Fixed backward compatibility with 1.0.0
-Modified regexAllMatches, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexFirstMatch, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexMatch, made regexFlags optional, and defaults to the flags used in version 1.0.0
-Modified regexInsertMatchMarkers, put FirstMatch boolean back in and made regexFlags optional, and defaults to the flags used in version 1.0.0
-Removed _r1_0 functions because their functionality is supported in the original function name again
2.0.2
-Added regexSearch function, supports a pattern, a search string, and regex options, returns an array of RegexMatch objects which contains the match, its starting position and ending position in the search string
-Added the RegexMatch data type
-Added regexAllMatches_r1_0, legacy function support
-Added regexFirstMatch_r1_0, legacy function support
-Added regexInsertMatchMarkers_r1_0, legacy function support
-Added regexMatch_r1_0, legacy function support
-Modified regexAllMatches, added regex options similar to those available in the new regexSearch function
-Modified regexFirstMatch, added regex options similar to those available in the new regexSearch function
-Modified regexMatch, added regex options similar to those available in the new regexSearch function
-Modified regexInsertMatchMarkers, removed FirstMatch boolean and added regex options similar to those available in the new regexSearch function
-General tweaks and optimizations
1.0 Initial release
2.0.2
2.0.2 -Added regexSearch function, supports a pattern, a search string, and regex options, returns an array of RegexMatch objects which contains the match, its starting position and ending position in the search string -Added the RegexMatch data type -Added regexAllMatches_r1_0, legacy function support -Added regexFirstMatch_r1_0, legacy function support -Added regexInsertMatchMarkers_r1_0, legacy function support -Added regexMatch_r1_0, legacy function support
-Modified regexAllMatches, added regex options similar to those available in the new regexSearch function -Modified regexFirstMatch, added regex options similar to those available in the new regexSearch function -Modified regexMatch, added regex options similar to those available in the new regexSearch function -Modified regexInsertMatchMarkers, removed FirstMatch boolean and added regex options similar to those available in the new regexSearch function
-General tweaks and optimizations
1.0 Initial release
1.0.0
[MIGRATED] Exposes some Java Regular Expression String manipulation capabilities as Appian Expressions.
NEWregexArraySearchIndexOfFirstMatch searches an array for a match and returns the first index of match found.
RegexIsMatch
RegexFirstMatch
RegexAllMatches
RegexReplaceAll