Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Online regexp Tcl

902 views
Skip to first unread message

Nicolas Robert

unread,
Feb 22, 2020, 4:37:12 AM2/22/20
to
Hello,
Google didn’t help me too much...
I would like to know if there is a online regular expression tester like this https://regex101.com but for Tcl
Thanks

Nicolas

Alexandru

unread,
Feb 22, 2020, 7:39:31 AM2/22/20
to
Are regular expression not kind of universal?
Besides, you can test regex in the wish console directly.

Rich

unread,
Feb 22, 2020, 7:47:49 AM2/22/20
to
Alexandru <alexandr...@meshparts.de> wrote:
> Am Samstag, 22. Februar 2020 10:37:12 UTC+1 schrieb Nicolas Robert:
>> Hello,
>> Google didn?t help me too much...
>> I would like to know if there is a online regular expression tester
>> like this https://regex101.com but for Tcl
>> Thanks
>>
>> Nicolas
>
> Are regular expression not kind of universal?

The base 80% or so are mostly universal. In the final 20% (i.e., the
very advanced stuff) they all differ.

> Besides, you can test regex in the wish console directly.

There is also this: https://wiki.tcl-lang.org/page/Visual+REGEXP

But it is not 'online' as in "a web page somewhere".

More info on regex debugging is here:
https://wiki.tcl-lang.org/page/Regular+Expression+Debugging+Tips

Lawrence Woodman

unread,
Feb 23, 2020, 2:52:36 AM2/23/20
to
On Sat, 22 Feb 2020 01:37:10 -0800, Nicolas Robert wrote:

> I would like to know if there is a online regular expression tester like this https://regex101.com but for Tcl

I too have occasionally butted up against differences in Tcl's regular
expressions. I can't think of anything specifically like regex101.com
for Tcl's regular expressions, but there is ideone which I find useful
at times for quickly testing things: https://ideone.com/l/tcl

Best wishes


Lorry

---
Position Independent Code (6502) on the Commodore VIC-20:
https://techtinkering.com/articles/position-independent-code-6502-on-the-commodore-vic-20/

Ricardo kozmate.net

unread,
Feb 23, 2020, 4:47:27 PM2/23/20
to
Em 22/02/20 09:37, Nicolas Robert escreveu:
> online regular expression tester like thishttps://regex101.com but for Tcl

I recently also used https://www.regexpal.com/
I used it for a college course, not related to TCL, so also do not know
how compatible it is, or not.

I have a *commercial* product (*not online*, for windows only?) on my
bookmarks that claims to know "exactly which regex features are
available in Tcl 8.4, 8.5, and 8.6". I never used, do not know anyone
who used it, so I do not have the slightest idea if it works well or
not. I do not even remember why it is on my bookmarks...
http://www.regexbuddy.com/tcl.html

--
{ricardo from kozmate.net}

tedbr...@gmail.com

unread,
Feb 23, 2020, 5:32:53 PM2/23/20
to
On Sunday, February 23, 2020 at 1:47:27 PM UTC-8, Ricardo kozmate.net wrote:

> I have a *commercial* product (*not online*, for windows only?)
> ..snip..
>https://www.regexbuddy.com/tcl.html
>

I got regexbuddy. It does understand tcl plus 10 or so others like java, perl, python, posix, etc. It has a very nice help function that explains regexes in great detail and worth the price alone, IMO. If you don't know the difference between greedy and lazy, this program will explain that.

It can explain an existing regex, where you can click on parts of the regex and it will highlight the corresponding verbal explanation, or click the explanation and it highlights the regex sub-codes. See the screenshot at https://www.regexbuddy.com/

It has a way to add all sorts of sub-expressions from a menu. And it has a “code generator” that works for many languages including tcl. It has a library of common regex's and has a debug mode.

I also have it installed under wine on my linux system.

It's $40 though.

0 new messages