Hi, I wrote a little tool to test regular expressions and verify that given samples match it. It also helps to divide an expression into subexpressions to retrieve parts of a matched string. Screenshot is attached. Code, load instructions and full tutorial on how to use it is on https://github.com/astares/Pharo-Regex-Tools Hope it is useful for others too. Have fun! Bye T.
Torsten Olivier in our team that is perl freaks from time to time, told me that this is sad that Pharo regexp are not compatible with the "standard" = rePlugin. And I think that his remark makes sense. I was wondering if we should not ressurect the RePlugin to make sure that users can use perlish regexp and do not feel that our world is strange. Do you have experience with re in the past? What do you think about this proposal? Stef
Hi,
I wrote a little tool to test regular expressions and verify that given samples match it. It also helps to divide an expression into subexpressions to retrieve parts of a matched string.
Screenshot is attached. Code, load instructions and full tutorial on how to use it is on https://github.com/astares/Pharo-Regex-Tools
Hope it is useful for others too. Have fun!
Bye T.
-- Using Opera's mail client: http://www.opera.com/mail/
On 1 Mar 2017, at 22:40, stepharong <stepharong@free.fr> wrote:
And I think that his remark makes sense. I was wondering if we should not ressurect the RePlugin to make sure that users can use perlish regexp and do not feel that our world is strange.
+1
On Thu, Mar 02, 2017 at 09:20:12AM +0100, Esteban Lorenzano wrote:
On 1 Mar 2017, at 22:40, stepharong <stepharong@free.fr> wrote:
And I think that his remark makes sense. I was wondering if we should not ressurect the RePlugin to make sure that users can use perlish regexp and do not feel that our world is strange.
+1
+23 I've been using regexes casually for years and yet every time I use them in Pharo I have to open the help and end up using PetitParser or parsing it manually anyway... PeterParser :)
Am 02.03.2017 um 09:54 schrieb Peter Uhnak <i.uhnak@gmail.com>:
On Thu, Mar 02, 2017 at 09:20:12AM +0100, Esteban Lorenzano wrote:
On 1 Mar 2017, at 22:40, stepharong <stepharong@free.fr> wrote:
And I think that his remark makes sense. I was wondering if we should not ressurect the RePlugin to make sure that users can use perlish regexp and do not feel that our world is strange.
+1
+23
I've been using regexes casually for years and yet every time I use them in Pharo I have to open the help and end up using PetitParser or parsing it manually anywayâ¦
Which are good reasons not to improve regex support ;) Norbert
And I think that his remark makes sense. I was wondering if we should not ressurect the RePlugin to make sure that users can use perlish regexp and do not feel that our world is strange.
+1
+23
I've been using regexes casually for years and yet every time I use them in Pharo I have to open the help and end up using PetitParser or parsing it manually anywayâ¦
Which are good reasons not to improve regex support ;)
Norbert I (would love to have a full version in Pharo - you know me on that). Now I do not know if we can change the regexp package to actually accept Perl or other more standard syntax and there is no maintainer of the regexp package. And it will be slower (of course we have to maintain a binding to a C-libraries). So you see I'm getting wiser with age :) Now if you tell me that you want to get the regexp package to accept perlish expressions - I sign :) Stef
Very nice!
Sent: Wednesday, March 01, 2017 at 3:32 PM From: "Torsten Bergmann" <astares@gmx.de> To: "Pharo Development List" <pharo-dev@lists.pharo.org>, "Any question about pharo is welcome" <pharo-users@lists.pharo.org> Subject: [Pharo-users] [ANN] Regex Tester Tool for Pharo is a good idea Hi,
I wrote a little tool to test regular expressions and verify that given samples match it. It also helps to divide an expression into subexpressions to retrieve parts of a matched string.
Screenshot is attached. Code, load instructions and full tutorial on how to use it is on https://github.com/astares/Pharo-Regex-Tools
Hope it is useful for others too. Have fun!
Bye T.
super!
On 2 Mar 2017, at 01:51, monty <monty2@programmer.net> wrote:
Very nice!
Sent: Wednesday, March 01, 2017 at 3:32 PM From: "Torsten Bergmann" <astares@gmx.de> To: "Pharo Development List" <pharo-dev@lists.pharo.org>, "Any question about pharo is welcome" <pharo-users@lists.pharo.org> Subject: [Pharo-users] [ANN] Regex Tester Tool for Pharo is a good idea Hi,
I wrote a little tool to test regular expressions and verify that given samples match it. It also helps to divide an expression into subexpressions to retrieve parts of a matched string.
Screenshot is attached. Code, load instructions and full tutorial on how to use it is on https://github.com/astares/Pharo-Regex-Tools
Hope it is useful for others too. Have fun!
Bye T.
participants (6)
-
Esteban Lorenzano -
monty -
Norbert Hartl -
Peter Uhnak -
stepharong -
Torsten Bergmann