473,574 Members | 17,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which RegEx Testing Tool Do You Prefer?

I'm using an .aspx tool I found at [1] but as nice as the interface is I
think I need to consider using others. Some can generate C# I understand.
Your preferences please...

<%= Clinton Gallagher

[1] http://forta.com/books/0672325667/
Nov 19 '05 #1
17 3951
Regex Buddy is very good. It costs around $30.00, includes quite a few nice
features, including the ability to copy regular expressions in various
language string syntaxes, including C#. It has the ability to create
libraries of regular expressions, a nice visual builder, color-coding, and
quite a bit more. Good testing environment. And it has some nice reference
material included.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
I'm using an .aspx tool I found at [1] but as nice as the interface is I
think I need to consider using others. Some can generate C# I understand.
Your preferences please...

<%= Clinton Gallagher

[1] http://forta.com/books/0672325667/

Nov 19 '05 #2
I was looking at PowerGrep from the same dev group but like Regex Buddy I
don't like the buy before you try business model so that choice has to be on
the shelf for the moment but thanks for bringing it up. I assume you've used
Regex Buddy?

<%= Clinton Gallagher

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Regex Buddy is very good. It costs around $30.00, includes quite a few
nice features, including the ability to copy regular expressions in
various language string syntaxes, including C#. It has the ability to
create libraries of regular expressions, a nice visual builder,
color-coding, and quite a bit more. Good testing environment. And it has
some nice reference material included.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
I'm using an .aspx tool I found at [1] but as nice as the interface is I
think I need to consider using others. Some can generate C# I understand.
Your preferences please...

<%= Clinton Gallagher

[1] http://forta.com/books/0672325667/


Nov 19 '05 #3
Hi Clinton,

Yes, I have it. I previously used the freeware Regex Coach Utility, but it
is nowhere near as complete in its support for various newer Regular
Expression syntax and programming languages in general. It did have one nice
feature about it. You could split a Regular Expression across multiple
lines, which often made it easier to analyze. However, Regex Buddy has the
graphical tree view, and it is synchronized with the Regular Expression
itself, which more than makes up for the omission of breaking a Regular
Expression across multiple lines.

BTW, it also has a GREP utility built in.

In short, it is well worth the 30 bucks.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I was looking at PowerGrep from the same dev group but like Regex Buddy I
don't like the buy before you try business model so that choice has to be
on the shelf for the moment but thanks for bringing it up. I assume you've
used Regex Buddy?

<%= Clinton Gallagher

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Regex Buddy is very good. It costs around $30.00, includes quite a few
nice features, including the ability to copy regular expressions in
various language string syntaxes, including C#. It has the ability to
create libraries of regular expressions, a nice visual builder,
color-coding, and quite a bit more. Good testing environment. And it has
some nice reference material included.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:%2******** **********@tk2m sftngp13.phx.gb l...
I'm using an .aspx tool I found at [1] but as nice as the interface is I
think I need to consider using others. Some can generate C# I
understand. Your preferences please...

<%= Clinton Gallagher

[1] http://forta.com/books/0672325667/



Nov 19 '05 #4
I saw a response to this question in the CSharp group, regarding a product
named "Expresso"

http://www.ultrapico.com/Expresso.htm

Expresso is .Net freeware, and after downloading, installing, and playing
with it, I'd give it a try! So far I have found it to be excellent, having
capabilities that Regex Buddy does not have, and a much more intuitive GUI.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi Clinton,

Yes, I have it. I previously used the freeware Regex Coach Utility, but it
is nowhere near as complete in its support for various newer Regular
Expression syntax and programming languages in general. It did have one
nice feature about it. You could split a Regular Expression across
multiple lines, which often made it easier to analyze. However, Regex
Buddy has the graphical tree view, and it is synchronized with the Regular
Expression itself, which more than makes up for the omission of breaking a
Regular Expression across multiple lines.

BTW, it also has a GREP utility built in.

In short, it is well worth the 30 bucks.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I was looking at PowerGrep from the same dev group but like Regex Buddy I
don't like the buy before you try business model so that choice has to be
on the shelf for the moment but thanks for bringing it up. I assume you've
used Regex Buddy?

<%= Clinton Gallagher

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Regex Buddy is very good. It costs around $30.00, includes quite a few
nice features, including the ability to copy regular expressions in
various language string syntaxes, including C#. It has the ability to
create libraries of regular expressions, a nice visual builder,
color-coding, and quite a bit more. Good testing environment. And it has
some nice reference material included.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:%2******** **********@tk2m sftngp13.phx.gb l...
I'm using an .aspx tool I found at [1] but as nice as the interface is
I think I need to consider using others. Some can generate C# I
understand. Your preferences please...

<%= Clinton Gallagher

[1] http://forta.com/books/0672325667/



Nov 19 '05 #5
Thanks Kevin. I saw that post too and am going to download Expresso in a few
minutes. I know you don't need to be psychic to figure out what I'm likely
to be asking next :-)

<%= Clinton Gallagher
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
I saw a response to this question in the CSharp group, regarding a product
named "Expresso"

http://www.ultrapico.com/Expresso.htm

Expresso is .Net freeware, and after downloading, installing, and playing
with it, I'd give it a try! So far I have found it to be excellent, having
capabilities that Regex Buddy does not have, and a much more intuitive
GUI.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi Clinton,

Yes, I have it. I previously used the freeware Regex Coach Utility, but
it is nowhere near as complete in its support for various newer Regular
Expression syntax and programming languages in general. It did have one
nice feature about it. You could split a Regular Expression across
multiple lines, which often made it easier to analyze. However, Regex
Buddy has the graphical tree view, and it is synchronized with the
Regular Expression itself, which more than makes up for the omission of
breaking a Regular Expression across multiple lines.

BTW, it also has a GREP utility built in.

In short, it is well worth the 30 bucks.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I was looking at PowerGrep from the same dev group but like Regex Buddy I
don't like the buy before you try business model so that choice has to be
on the shelf for the moment but thanks for bringing it up. I assume
you've used Regex Buddy?

<%= Clinton Gallagher

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Regex Buddy is very good. It costs around $30.00, includes quite a few
nice features, including the ability to copy regular expressions in
various language string syntaxes, including C#. It has the ability to
create libraries of regular expressions, a nice visual builder,
color-coding, and quite a bit more. Good testing environment. And it
has some nice reference material included.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:%2******** **********@tk2m sftngp13.phx.gb l...
> I'm using an .aspx tool I found at [1] but as nice as the interface is
> I think I need to consider using others. Some can generate C# I
> understand. Your preferences please...
>
> <%= Clinton Gallagher
>
> [1] http://forta.com/books/0672325667/
>



Nov 19 '05 #6
The kind of RegEx tool I'd like is one which can take a string
I write, and create a RegEx expression which matches it.

*That* will be the RegEx tool that will corner the market.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:Of******** ******@TK2MSFTN GP10.phx.gbl...
Thanks Kevin. I saw that post too and am going to download Expresso in a few minutes. I
know you don't need to be psychic to figure out what I'm likely to be asking next :-)

<%= Clinton Gallagher
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
I saw a response to this question in the CSharp group, regarding a product named
"Expresso"

http://www.ultrapico.com/Expresso.htm

Expresso is .Net freeware, and after downloading, installing, and playing with it, I'd
give it a try! So far I have found it to be excellent, having capabilities that Regex
Buddy does not have, and a much more intuitive GUI.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi Clinton,

Yes, I have it. I previously used the freeware Regex Coach Utility, but it is nowhere
near as complete in its support for various newer Regular Expression syntax and
programming languages in general. It did have one nice feature about it. You could
split a Regular Expression across multiple lines, which often made it easier to
analyze. However, Regex Buddy has the graphical tree view, and it is synchronized with
the Regular Expression itself, which more than makes up for the omission of breaking a
Regular Expression across multiple lines.

BTW, it also has a GREP utility built in.

In short, it is well worth the 30 bucks.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I was looking at PowerGrep from the same dev group but like Regex Buddy I don't like
the buy before you try business model so that choice has to be on the shelf for the
moment but thanks for bringing it up. I assume you've used Regex Buddy?

<%= Clinton Gallagher

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
> Regex Buddy is very good. It costs around $30.00, includes quite a few nice
> features, including the ability to copy regular expressions in various language
> string syntaxes, including C#. It has the ability to create libraries of regular
> expressions, a nice visual builder, color-coding, and quite a bit more. Good testing
> environment. And it has some nice reference material included.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Ambiguity has a certain quality to it.
>
> "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
> news:%2******** **********@tk2m sftngp13.phx.gb l...
>> I'm using an .aspx tool I found at [1] but as nice as the interface is I think I
>> need to consider using others. Some can generate C# I understand. Your preferences
>> please...
>>
>> <%= Clinton Gallagher
>>
>> [1] http://forta.com/books/0672325667/
>>
>
>



Nov 19 '05 #7
Hi Juan,
The kind of RegEx tool I'd like is one which can take a string
I write, and create a RegEx expression which matches it.
The problem with that is that you can write a Regular Expression that
matches a literal string quite easily. For example:

literal string

The above is a regular expression which will match the substring "literal
string" in my first sentence. Of course, the real power of regular
expressions is the abilty to match *patterns* in a string, perform grouping,
etc. So, like any programming language (which it is, in a sense), Regular
Expressions have a shorthand syntax that allows one to create patterns of a
large variety of types. A simple example of this would be:

(literal) (string)

This captures the same match as the first, but puts the string "literal"
into a group, and the string "string" into a second group. But of course, we
have already exceeded your desired requirement. On the other hand, we have
made a regular expression that is perhaps more useful (in some situations)
than the first.

And of course, the possible types and combinations of patterns are almost
endless, including wildcard patterns, special characters, boolean rules, and
so on.

Yeah, it's like reading some kind of incredibly concise shorthand code,
without even line breaks or brackets to help. That's why I was so pleased to
see that Expresso allows you to break your regular expression across
multiple lines while building it. That helps a good bit!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:ei******** ******@TK2MSFTN GP12.phx.gbl... The kind of RegEx tool I'd like is one which can take a string
I write, and create a RegEx expression which matches it.

*That* will be the RegEx tool that will corner the market.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:Of******** ******@TK2MSFTN GP10.phx.gbl...
Thanks Kevin. I saw that post too and am going to download Expresso in a
few minutes. I know you don't need to be psychic to figure out what I'm
likely to be asking next :-)

<%= Clinton Gallagher
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
I saw a response to this question in the CSharp group, regarding a
product named "Expresso"

http://www.ultrapico.com/Expresso.htm

Expresso is .Net freeware, and after downloading, installing, and
playing with it, I'd give it a try! So far I have found it to be
excellent, having capabilities that Regex Buddy does not have, and a
much more intuitive GUI.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi Clinton,

Yes, I have it. I previously used the freeware Regex Coach Utility, but
it is nowhere near as complete in its support for various newer Regular
Expression syntax and programming languages in general. It did have one
nice feature about it. You could split a Regular Expression across
multiple lines, which often made it easier to analyze. However, Regex
Buddy has the graphical tree view, and it is synchronized with the
Regular Expression itself, which more than makes up for the omission of
breaking a Regular Expression across multiple lines.

BTW, it also has a GREP utility built in.

In short, it is well worth the 30 bucks.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>I was looking at PowerGrep from the same dev group but like Regex Buddy
>I don't like the buy before you try business model so that choice has
>to be on the shelf for the moment but thanks for bringing it up. I
>assume you've used Regex Buddy?
>
> <%= Clinton Gallagher
>
>
>
> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
> news:%2******** *******@tk2msft ngp13.phx.gbl.. .
>> Regex Buddy is very good. It costs around $30.00, includes quite a
>> few nice features, including the ability to copy regular expressions
>> in various language string syntaxes, including C#. It has the ability
>> to create libraries of regular expressions, a nice visual builder,
>> color-coding, and quite a bit more. Good testing environment. And it
>> has some nice reference material included.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Ambiguity has a certain quality to it.
>>
>> "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
>> message news:%2******** **********@tk2m sftngp13.phx.gb l...
>>> I'm using an .aspx tool I found at [1] but as nice as the interface
>>> is I think I need to consider using others. Some can generate C# I
>>> understand. Your preferences please...
>>>
>>> <%= Clinton Gallagher
>>>
>>> [1] http://forta.com/books/0672325667/
>>>
>>
>>
>
>



Nov 19 '05 #8
re:
That's why I was so pleased to see that Expresso allows you to break your regular
expression across multiple lines while building it. That helps a good bit!
I really like its "Analyze" feature. The "Builder" is quite good, too!

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Ow******** ********@tk2msf tngp13.phx.gbl. .. Hi Juan,
The kind of RegEx tool I'd like is one which can take a string
I write, and create a RegEx expression which matches it.


The problem with that is that you can write a Regular Expression that matches a literal
string quite easily. For example:

literal string

The above is a regular expression which will match the substring "literal string" in my
first sentence. Of course, the real power of regular expressions is the abilty to match
*patterns* in a string, perform grouping, etc. So, like any programming language (which
it is, in a sense), Regular Expressions have a shorthand syntax that allows one to
create patterns of a large variety of types. A simple example of this would be:

(literal) (string)

This captures the same match as the first, but puts the string "literal" into a group,
and the string "string" into a second group. But of course, we have already exceeded
your desired requirement. On the other hand, we have made a regular expression that is
perhaps more useful (in some situations) than the first.

And of course, the possible types and combinations of patterns are almost endless,
including wildcard patterns, special characters, boolean rules, and so on.

Yeah, it's like reading some kind of incredibly concise shorthand code, without even
line breaks or brackets to help. That's why I was so pleased to see that Expresso allows
you to break your regular expression across multiple lines while building it. That helps
a good bit!

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:ei******** ******@TK2MSFTN GP12.phx.gbl...
The kind of RegEx tool I'd like is one which can take a string
I write, and create a RegEx expression which matches it.

*That* will be the RegEx tool that will corner the market.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
news:Of******** ******@TK2MSFTN GP10.phx.gbl...
Thanks Kevin. I saw that post too and am going to download Expresso in a few minutes.
I know you don't need to be psychic to figure out what I'm likely to be asking next
:-)

<%= Clinton Gallagher
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
I saw a response to this question in the CSharp group, regarding a product named
"Expresso "

http://www.ultrapico.com/Expresso.htm

Expresso is .Net freeware, and after downloading, installing, and playing with it,
I'd give it a try! So far I have found it to be excellent, having capabilities that
Regex Buddy does not have, and a much more intuitive GUI.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> Hi Clinton,
>
> Yes, I have it. I previously used the freeware Regex Coach Utility, but it is
> nowhere near as complete in its support for various newer Regular Expression syntax
> and programming languages in general. It did have one nice feature about it. You
> could split a Regular Expression across multiple lines, which often made it easier
> to analyze. However, Regex Buddy has the graphical tree view, and it is synchronized
> with the Regular Expression itself, which more than makes up for the omission of
> breaking a Regular Expression across multiple lines.
>
> BTW, it also has a GREP utility built in.
>
> In short, it is well worth the 30 bucks.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Ambiguity has a certain quality to it.
>
> "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
> news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>>I was looking at PowerGrep from the same dev group but like Regex Buddy I don't like
>>the buy before you try business model so that choice has to be on the shelf for the
>>moment but thanks for bringing it up. I assume you've used Regex Buddy?
>>
>> <%= Clinton Gallagher
>>
>>
>>
>> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
>> news:%2******** *******@tk2msft ngp13.phx.gbl.. .
>>> Regex Buddy is very good. It costs around $30.00, includes quite a few nice
>>> features, including the ability to copy regular expressions in various language
>>> string syntaxes, including C#. It has the ability to create libraries of regular
>>> expressions, a nice visual builder, color-coding, and quite a bit more. Good
>>> testing environment. And it has some nice reference material included.
>>>
>>> --
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>> .Net Developer
>>> Ambiguity has a certain quality to it.
>>>
>>> "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in message
>>> news:%2******** **********@tk2m sftngp13.phx.gb l...
>>>> I'm using an .aspx tool I found at [1] but as nice as the interface is I think I
>>>> need to consider using others. Some can generate C# I understand. Your
>>>> preferences please...
>>>>
>>>> <%= Clinton Gallagher
>>>>
>>>> [1] http://forta.com/books/0672325667/
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #9
Kevin, have you ever heard the expression "preaching to the choir?" :-)

I've got the basic pattern matching theory understood but its the use of
expressions to disallow or replace certain characters and/or strings that
I'm trying to really understand thoroughly. The following example
illustrates...

// Example
Lawn Mowers, Repairs & Services - lawnmowers.com

A typical page title that when entered into a TextBox meant to capture
string data for an RSS 2.0 title element should use &amp; instead of the &
to represent the ampersand. I've got an expression that works well for the
example but can't figure out (with the expression I have) how to match the &
and replace it with &amp; (yet) -- or -- how to use the expression I have to
force the 2.0 Regular Expression Validator to fail when the & is present in
the string.

// Expression
[a-z]+([a-z0-9-]*[a-z0-9]+)?(\.([a-z]+([a-z0-9-]*[a-z0-9]+)?)+)*

I also really appreciate Expresso's Analyzer. It is outstanding that
Expresso seems to make it easy for us to pick expressions apart piece by
piece and explain them in English.
<%= Clinton Gallagher


"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Ow******** ********@tk2msf tngp13.phx.gbl. ..
Hi Juan,
The kind of RegEx tool I'd like is one which can take a string
I write, and create a RegEx expression which matches it.


The problem with that is that you can write a Regular Expression that
matches a literal string quite easily. For example:

literal string

The above is a regular expression which will match the substring "literal
string" in my first sentence. Of course, the real power of regular
expressions is the abilty to match *patterns* in a string, perform
grouping, etc. So, like any programming language (which it is, in a
sense), Regular Expressions have a shorthand syntax that allows one to
create patterns of a large variety of types. A simple example of this
would be:

(literal) (string)

This captures the same match as the first, but puts the string "literal"
into a group, and the string "string" into a second group. But of course,
we have already exceeded your desired requirement. On the other hand, we
have made a regular expression that is perhaps more useful (in some
situations) than the first.

And of course, the possible types and combinations of patterns are almost
endless, including wildcard patterns, special characters, boolean rules,
and so on.

Yeah, it's like reading some kind of incredibly concise shorthand code,
without even line breaks or brackets to help. That's why I was so pleased
to see that Expresso allows you to break your regular expression across
multiple lines while building it. That helps a good bit!

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:ei******** ******@TK2MSFTN GP12.phx.gbl...
The kind of RegEx tool I'd like is one which can take a string
I write, and create a RegEx expression which matches it.

*That* will be the RegEx tool that will corner the market.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
message news:Of******** ******@TK2MSFTN GP10.phx.gbl...
Thanks Kevin. I saw that post too and am going to download Expresso in a
few minutes. I know you don't need to be psychic to figure out what I'm
likely to be asking next :-)

<%= Clinton Gallagher
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
I saw a response to this question in the CSharp group, regarding a
product named "Expresso"

http://www.ultrapico.com/Expresso.htm

Expresso is .Net freeware, and after downloading, installing, and
playing with it, I'd give it a try! So far I have found it to be
excellent, having capabilities that Regex Buddy does not have, and a
much more intuitive GUI.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> Hi Clinton,
>
> Yes, I have it. I previously used the freeware Regex Coach Utility,
> but it is nowhere near as complete in its support for various newer
> Regular Expression syntax and programming languages in general. It did
> have one nice feature about it. You could split a Regular Expression
> across multiple lines, which often made it easier to analyze. However,
> Regex Buddy has the graphical tree view, and it is synchronized with
> the Regular Expression itself, which more than makes up for the
> omission of breaking a Regular Expression across multiple lines.
>
> BTW, it also has a GREP utility built in.
>
> In short, it is well worth the 30 bucks.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Ambiguity has a certain quality to it.
>
> "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
> message news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>>I was looking at PowerGrep from the same dev group but like Regex
>>Buddy I don't like the buy before you try business model so that
>>choice has to be on the shelf for the moment but thanks for bringing
>>it up. I assume you've used Regex Buddy?
>>
>> <%= Clinton Gallagher
>>
>>
>>
>> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
>> news:%2******** *******@tk2msft ngp13.phx.gbl.. .
>>> Regex Buddy is very good. It costs around $30.00, includes quite a
>>> few nice features, including the ability to copy regular expressions
>>> in various language string syntaxes, including C#. It has the
>>> ability to create libraries of regular expressions, a nice visual
>>> builder, color-coding, and quite a bit more. Good testing
>>> environment. And it has some nice reference material included.
>>>
>>> --
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>> .Net Developer
>>> Ambiguity has a certain quality to it.
>>>
>>> "clintonG" <cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
>>> message news:%2******** **********@tk2m sftngp13.phx.gb l...
>>>> I'm using an .aspx tool I found at [1] but as nice as the interface
>>>> is I think I need to consider using others. Some can generate C# I
>>>> understand. Your preferences please...
>>>>
>>>> <%= Clinton Gallagher
>>>>
>>>> [1] http://forta.com/books/0672325667/
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2523
by: bdwise | last post by:
I have this in my body tag: something();something(); document.thisForm.textBox1.focus();something(); And I want to find a part between the semicolons that ends in focus() and remove the entire value between the semicolons. My Regular Expression looks like this but it is not matching, can anyone help?
7
1411
by: clintonG | last post by:
I'm using an .aspx tool I found at and it has a nice UI but doesn't generate C#. I'm interested in learning what you may prefer. <%= Clinton Gallagher http://forta.com/books/0672325667/
7
1523
by: CB | last post by:
Trying to match the entire following object literal code using a RegEx. var Punctuators = { '{' : 'LeftCurly', '}' : 'RightCurly' } Variations on the idea of using /var.*{.*}/ of course stops at the first }. Any ideas? Thanks in advance.
11
3090
by: Steve | last post by:
Hi All, I'm having a tough time converting the following regex.compile patterns into the new re.compile format. There is also a differences in the regsub.sub() vs. re.sub() Could anyone lend a hand? import regsub
4
2627
by: Chris | last post by:
Hi Everyone, I am using a regex to check for a string. When all the file contains is my test string the regex returns a match, but when I embed the test string in the middle of a text file a match is never returned. The string that I give to the regex is one that contains the entire contents of a text file. I'm using the multi-line...
3
1583
by: skneife | last post by:
Hi, I have an input string : <NEW>g04 8/1 0<catset>pub=g04</catset> and I use this regex expresssion to match from <NEWto </catset>, I wrote: <NEW>.+?</catsetbut it doesn't work, no match ! What is the good way ? Thanks. Sam
9
1326
by: Simon Woods | last post by:
Hi I'm new to Regular Expressions so ... I trying to work out regular expressions to parse the following (a + (b + c)) I really want to replace it with
3
177
by: Jeff | last post by:
I'm parsing this: name="value" and sometimes it looks like this: name2="value2 without the closing '"'. I don't want to capture the end quote.
0
8081
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8258
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7835
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8121
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6486
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5325
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2255
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1084
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.