ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] regular expression as lua pattern
@ 2024-05-28 16:12 Pablo Rodriguez via ntg-context
  2024-05-28 16:25 ` [NTG-context] " Tomáš Hála
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-05-28 16:12 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Pablo Rodriguez

Dear list,

I have the following sample:

	\starttext
	\startTEXpage[pagestate=start, offset=1em]
	\startluacode
		local str = "this is that"
		context(str:match("(this|these)"))
	\stopluacode
	\stopTEXpage
	\stoptext

In short, I would like to know whether it is possible to have the
regular expression (this|these) as a Lua pattern.

I mean, I need complete strings and I haven’t found the way to do it.

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-05-29 15:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-28 16:12 [NTG-context] regular expression as lua pattern Pablo Rodriguez via ntg-context
2024-05-28 16:25 ` [NTG-context] " Tomáš Hála
2024-05-28 16:40   ` Pablo Rodriguez via ntg-context
2024-05-28 18:06   ` Hans Hagen
2024-05-29 11:00     ` Henning Hraban Ramm
2024-05-29 15:16       ` Pablo Rodriguez via ntg-context
2024-05-29 15:14     ` Pablo Rodriguez via ntg-context

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).