Advertisement

03.07.2007 at 03:29PM PST, ID: 22435185
[x]
Attachment Details

Regular expression for TextPad to find & inside CFQUERY tags

Asked by Sapphireblue in Regular Expressions

Tags: textpad, regular, expression

Need a regular expression that I can use with TextPad's "find in files" to identify instances of the & ampersand character between opening and closing <CFQUERY></CFQUERY> tags in a ColdFusion application. The opening tag does take several attributes; there can be more than one set of CFQUERY tags in a single file.

The context is, I'm converting an app from Access to SQL Server; Access supports + or & as a concatenation operator but SQL Server only takes + so I need to hunt down those ampersands.

Some notes I found on the web about TextPad's regular expressions implementation are below. Thank you!

--

According to the TextPad manual (distributed with TextPad v4.7.3), TextPad mostly supports POSIX Extended Regular Expression syntax, with the following changes:

The ERE ( ) grouping operator is spelled \( \) in TextPad
The ERE { } quantifier operator is spelled \{ \} in TextPad
The ERE | alternation operator is spelled \| in TextPad

TextPad also supports \< and \> to match the start and end of a word; \t, \f, and \n to match tab, form feed, and newline; \xHH to match a character via its code point specified in hexadecimal; and an additional character class [[:token:]] which matches a token character according to the current Syntax definition. See the TextPad manual for more information.Start Free Trial
 
Keywords: Regular expression for TextPad to find …
 
Loading Advertisement...
 
[+][-]03.07.2007 at 03:36PM PST, ID: 18675129

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2007 at 03:49PM PST, ID: 18675212

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2007 at 04:35PM PST, ID: 18675444

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2007 at 04:49PM PST, ID: 18675515

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Regular Expressions
Tags: textpad, regular, expression
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32