Skip to content

CFDan/VerbalExpressionCFC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColdFusion VerbalExpressions

A ColdFusion implementation of VerbalExpressions based heavily on the Java implementation

Usage

<cfset ve = new VerbalExpression()>
<cfset ve.startOfLine().then( "http" ).maybe( "s" ).then( "://" ).maybe( "www." ).anythingBut( " " ).endOfLine()>

<cfset LOCAL.matches = ve.test( "https://www.google.com/" )>

Notes

There seems to be a slight bug in the Pattern class in the Java ColdFusion 9 uses which ignores and modifiers added as flags so I've worked around it by putting the modifiers in using (modifierChar+) at the start of the pattern.

About

ColdFusion implementation of VerbalExpressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published