Conversation
Notices
-
Embed this notice
MercurialBlack (mercurialblack@pleroma.mercurial.blog)'s status on Monday, 25-Dec-2023 03:34:53 JST MercurialBlack
@kirby @kirby @kirby @kirby what's the recommended way to do regex matching in a (minimalist) C project? - Pleroma-tan likes this.
- Pleroma-tan repeated this.
-
Embed this notice
Pleroma-tan (kirby@lab.nyanide.com)'s status on Monday, 25-Dec-2023 03:35:33 JST Pleroma-tan
@MercurialBlack @kirby @kirby I don't know any regex engines I've never had to use regex before lol
https://github.com/kokke/tiny-regex-c
Googling brings up this project with a public domain license -
Embed this notice
MercurialBlack (mercurialblack@pleroma.mercurial.blog)'s status on Monday, 25-Dec-2023 03:38:48 JST MercurialBlack
@kirby @kirby @kirby thank you In conversation permalink Pleroma-tan likes this. -
Embed this notice
hirohito (hiro@mstdn.starnix.network)'s status on Monday, 25-Dec-2023 04:10:27 JST hirohito
@MercurialBlack @kirby@den.raccoon.quest @kirby@freespeechextremist.com @kirby@lab.nyanide.com
Couple options:
1) POSIX Regex library
2) If you control the regexes, write a backtracking regex (http://genius.cat-v.org/brian-kernighan/articles/beautiful)
3) Don't use regex and use something simplerWhat do you need them for?
In conversation permalink Attachments
Pleroma-tan likes this.