Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Overview
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.
Key Features & Functionality
Datatypes provided:
Regex Flags supported:
Functions provided:
Hey Chris,
Do you by any chance have a plugin we can download for versions below 19.2?
Regards
I double checked and it looks like 1.0 had all of it's logging in the markers function. I would still recommend updating the plugin as the newer versions are backward compatible with 1.0.
Thanks for you response.
It means that it was an existing issue. We are still using version 1.0. Is there any specific function which creating more log output?
Hi bhupinders,
Version 1.0 had a great deal of excess logging, most of which was removed in 2.0. The only remaining one after that that was the logging of a true or a false when using the insert markers function. As of the current release (2.1.1), that last item has been removed.
Thanks!
Hi,
Which version had this issue?
Hello! For that you should use regexmatch. Just put the pattern in the first argument and the string you want to check in the second argument. To duplicate that more closely just loop through the list.
Hello!
For this you'd probably just want to use the regexmatch function like this:
a!localVariables( local!ssns: { /*Valid SSNs*/ "123-45-6789", "856-45-6789", /*Invalid SSNs*/ "000-45-6789", "666-45-6789", "901-45-6789", "85-345-6789", "856-453-6789", "856-45-67891", "856-456789" }, a!forEach( items: local!ssns, expression: regexmatch( "^(?!000|666)[0-8][0-9]{2}-(?!00)[0-9]{2}-(?!0000)[0-9]{4}$", fv!item ) ) ) Output: true(Boolean) true(Boolean) false(Boolean) false(Boolean) false(Boolean) false(Boolean) false(Boolean) false(Boolean) false(Boolean)
Good day! Just starting to learn your product, but how can I get this Java REGEX into your regex function to return a result?
List<String> ssns = new ArrayList<String>(); //Valid SSNs ssns.add("123-45-6789"); ssns.add("856-45-6789"); //Invalid SSNs ssns.add("000-45-6789"); ssns.add("666-45-6789"); ssns.add("901-45-6789"); ssns.add("85-345-6789"); ssns.add("856-453-6789"); ssns.add("856-45-67891"); ssns.add("856-456789"); String regex = "^(?!000|666)[0-8][0-9]{2}-(?!00)[0-9]{2}-(?!0000)[0-9]{4}$"; Pattern pattern = Pattern.compile(regex); for (String number : ssns) { Matcher matcher = pattern.matcher(number); System.out.println(matcher.matches()); } Output: true true false false false false false false false
Thanks for all Chris!