Skip to content

Instantly share code, notes, and snippets.

Mariano Gonzalez marianogonzalez

Block or report user

Report or block marianogonzalez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xmlFTW.xml
<flow name="xmlFTW">
<validation:is-true expression="#[payload.xml == 'rules!']" />
<validation:is-false expression="#[payload.xml == 'is hard']]" />
View melvalidation.xml
<flow name="melValidation">
<when expression="#[validator.validateEmail(]">
<flow-ref name="sendEmail" />
<logger message="no email. Try contacting the user some other way" />
View validateMailMel.xml
View validateregex.xml
<!-- Matches Canadian PostalCode formats with or without spaces (e.g., "T2X 1V4" or "T2X1V4") -->
<validation:matches-regex expression="T2X1V4" regex="^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$" caseSensitive="true" />
View validateregexMel.xml
#[validator.matchesRegex('T2X1V4', '^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$', true)];
View validatetimemel.xml
#[validator.isTime('12:08 PM', 'h:mm a')]
#[validator.isTime('12:08 PM', 'h:mm a', 'US')]
View validateempty.xml
<validation:empty expression="#[value]" />
You can’t perform that action at this time.