Ben Forta

Blog

September 8, 2001

Multi-Character Regular Expressions

When using Regular Expressions to match a block of text containing repeated characters (or sets of characters), remember the following rules: an expression followed by + matches one or more occurrences of that expression, an expression followed by * matches zero or more occurrences of that...

September 7, 2001

Using Special Characters in Regular Expressions

When using Regular Expressions characters match themselves unless they are special characters (ones that have special meanings within the expression). In CFML Regular Expressions these are + * ? . [ ^ $ ( ) { | and . To refer to any of these characters as themselves you must escape them by...

September 6, 2001

Finding Regular Expression Subexpressions

When working with Regular Expressions you may want to know the exact positions of all matched subexpressions. Both REFind() and REFindNoCase() support an optional fourth attribute - a flag specifying whether or not to return this information. Set this parameter to TRUE to force ColdFusion to return...

September 5, 2001

Regular Expression Backreferences

CFML supports the use of backreferences in Regular Expression operations. Using backreferences it is possible to refer to matched expressions in both search and replace operations. When using backreferences you must enclose the string in parentheses (within regular double quotes) or ColdFusion will...

September 4, 2001

Regular Expressions and Large Blocks of Text

The CFML RegEx function (REFind(), REReplace(), etc.) should not be used with text more than about 20K in size. If you need to manipulate extremely large blocks of data you should break the text into smaller pieces, apply the regular expressions to them, and then concatenate the results when done....

September 3, 2001

RegEx POSIX Character Classes

When using Regular Expressions you'll often need to work with sets of characters, for example, digits, alphanumeric characters, or any white space characters. To simplify working with this type of data, CFML supports the use of POSIX character classes - special identifiers that match sets of...

September 2, 2001

Special RegEx Characters

CFML supports the use of Regular Expressions in both search and replace operations (using functions like REFind() and REReplace()). When using Regular Expressions remember the following special characters: - specifies a character range, $ matches a new line, ^ excludes characters from being...

September 1, 2001

Locking Scoped Function Calls

User defined functions (UDF's) may be placed in to shared scopes (SERVER, APPLICATION, and SESSION). But use scoped UDF's carefully – as with any shared scope access, calls to these UDF's must be locked using . If you are using scoped UDF's you may want to copy then to the REQUEST scope so as...

August 31, 2001

Scoped User Defined Functions

User defined functions (UDF's) may be created in different scopes, for example SESSION.Func() and REQUEST.Func() are both valid and allowed. But scopes may not be used when naming a function. To place a function in a scope first define it as you would usually, and then copy it. For example, once...

August 30, 2001

Development on Windows 9x

ColdFusion 5 can be used on Windows 9x boxes (for development only, Windows 9x is not a suitable production platform). However, the graphing engine (which powers the tag) is not supported on Windows 9x, and so that tag will not be usable on boxes running that operating system. (Applies to:...

Page 454 of 489 (4890 posts)