zsh-users
 help / color / mirror / code / Atom feed
* zregexparse
@ 2017-03-29  8:46 Sebastian Gniazdowski
  2017-03-31  5:19 ` zregexparse Bart Schaefer
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Gniazdowski @ 2017-03-29  8:46 UTC (permalink / raw)
  To: zsh-users

Hello,
I've stumbled upon zregexparse. Verified that it doesn't auto-load zsh/regex. Manual says:

   zregexparse
      This implements some internals of the _regex_arguments function.

Test V02 suggest this is a very capable tool. How it is compiled, with use of LGPL Gnu regex? I wonder what use cases might it have, this test:

  zregexparse p1 p2 abcdef \(  '/c?|?/' '{print $match[1]}' \) \#
  print $? $p1 $p2
0:abcdef ( /c?|?/ {M1} ) #
>a
>b
>cd
>e
>f
>0 6 6

reveals that it can run code for every match. p1 and p2 aren't that clear. Has someone come across a practical use case for this call? It looks like it is safe to use, as it is tested and is not in module, and 4.3.17 has it..?

--
Sebastian Gniazdowski
psprint /at/ zdharma.org


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-04-01 23:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29  8:46 zregexparse Sebastian Gniazdowski
2017-03-31  5:19 ` zregexparse Bart Schaefer
2017-03-31  5:53   ` zregexparse Sebastian Gniazdowski
2017-03-31  6:58     ` zregexparse Sebastian Gniazdowski
2017-03-31 21:13       ` zregexparse Bart Schaefer
2017-04-01 10:21         ` zregexparse Sebastian Gniazdowski
2017-04-01 16:43           ` zregexparse Bart Schaefer
2017-04-01 23:21             ` zregexparse Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).