Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

TCL(Tool Command Language) Scripting

regexp standards


Can anyone tell me if TCL 8.4 conforms to any of the various regex
standards? (POSIX, PCRE etc)
Is there anyway to force compatibility?
cheers,
Ben
On Jun 7, 2:08 am, "b@spam.com" <ben.carb@gmail.com> wrote:

> Can anyone tell me if TCL 8.4 conforms to any of the various regex
> standards? (POSIX, PCRE etc)
> Is there anyway to force compatibility?

Do you know of a test suite which would permit someone to test
compliance?

As far as I know, the original code used in Tcl's regular expression
code was not written with compliance to any of the "standards" (most
of which are not really standards) as a goal. And in fact, Tcl's
regular expressions were the first (or nearly so) to handle unicode ...

b@spam.com schrieb:
> Can anyone tell me if TCL 8.4 conforms to any of the various regex
> standards? (POSIX, PCRE etc)
> Is there anyway to force compatibility?
> cheers,
> Ben

IIRC someone wrote a wrapper for pcre once..., might just use that if
its important.

Tcl surely does not conform to PCRE. Posix i don't know, might be, at
least the re_syntax man page mentions posix once or twice.

Michael

Michael Schlenker wrote:
> b@spam.com schrieb:
>> Can anyone tell me if TCL 8.4 conforms to any of the various regex
>> standards? (POSIX, PCRE etc)
>> Is there anyway to force compatibility?
>> cheers,
>> Ben

> IIRC someone wrote a wrapper for pcre once..., might just use that if
> its important.

> Tcl surely does not conform to PCRE. Posix i don't know, might be, at
> least the re_syntax man page mentions posix once or twice.

Shouldn't that be "PCRE doesn't conform to Tcl REs"? :-)

--
Bryan Oakley
http://www.tclscripting.com

Tcl regexps can be pretty well characterized as POSIX with some but
not all PERL extensions, which doesn't fit any standard exactly. In
any case, most standards do not define what happens beyond the ASCII
range.

On Thu, 07 Jun 2007 13:58:14 -0700, billpo@alum.mit.edu wrote:
> Tcl regexps can be pretty well characterized as POSIX with some but
> not all PERL extensions, which doesn't fit any standard exactly. In
> any case, most standards do not define what happens beyond the ASCII
> range.

Standards are GREAT!  And, there's soooooooo many to choose from!!
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc