Also sprach DeepDiver:
> "David H. Adler" <> wrote in message
> news:...
>> On 2004-12-04, DeepDiver <no-> wrote:
>> > "Sherm Pendley" <> wrote in message
>> > news:SOydnYD65MRH0izcRVn-...
>> >>
>> >> Have a look at HTML:
arser on CPAN.
>> >>
>> >
>> > Thanks, but I'm in need of a pure RegEx solution.
>>
>> This of course raises the question: Why?
>
>
> A few reasons:
>
> 1. I'm not programming in Perl. In fact, my experience with Perl was a long
> time ago (and not very extensive even then). I came here because I believe
> that Perl programmers are generally the most proficient with regular
> expressions.
This nonetheless makes your posting rather off-topic in this group. Perl
did not invent regular expressions. Also, Perl regular expressions are
likely to be more powerful than regular expressions found in other
languages. This means you probably couldn't use a regex solution
from this group in your program.
> 2. I'm writing the current routine in C#. But I would still prefer a "pure"
> RegEx solution so that I have something that is concise and (higher-level)
> language independent.
I have my doubts as to the conciseness of a pure regex solution.
Classical reguar expressions aren't even remotely powerful enough to
parse HTML (and there's not much to argue about
: It can be proven with
the famous Pumping lemma). Perl's regular expressions might be powerful
enough as they have some non-regular extensions (they allow
back-references, they can be recursive etc.). Still, a regex solution
could hardly be robust. Let alone the fact that .NET regular expressions
lack many of the Perl features.
Tassilo
--
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus}) !JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexi ixesixeseg;y~\n~~dddd;eval