{"id":15721082,"url":"https://github.com/kodekote/gtkregextester","last_synced_at":"2026-05-18T06:41:03.017Z","repository":{"id":192262148,"uuid":"686377267","full_name":"kodekote/gtkregextester","owner":"kodekote","description":"a regex testing utility for GTK 3","archived":false,"fork":false,"pushed_at":"2023-09-02T23:38:40.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T01:51:36.762Z","etag":null,"topics":["c","custom-drawing","gtk","gtk3","libcairo","regex-matcher","regex-validator"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kodekote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-02T15:32:15.000Z","updated_at":"2023-09-09T10:59:05.000Z","dependencies_parsed_at":"2023-09-03T20:53:20.094Z","dependency_job_id":null,"html_url":"https://github.com/kodekote/gtkregextester","commit_stats":null,"previous_names":["kodekote/gtkregextester"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodekote%2Fgtkregextester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodekote%2Fgtkregextester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodekote%2Fgtkregextester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodekote%2Fgtkregextester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodekote","download_url":"https://codeload.github.com/kodekote/gtkregextester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390873,"owners_count":20769478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","custom-drawing","gtk","gtk3","libcairo","regex-matcher","regex-validator"],"created_at":"2024-10-03T22:00:49.189Z","updated_at":"2026-05-18T06:40:57.996Z","avatar_url":"https://github.com/kodekote.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gtkregextester (GTK Regex Tester)\n## A tool to test regular expressions against target strings for Linux operating systems (or any system that supports GTK 3).\n\n### Synposis:\nAside from being useful, this code showcases several poorly-documented features of _GTK 3_\nthat may be of interest to some. Namely:\n1. the API to implement custom drawing (including\ngeometry management and invoking _libcairo_)\n1. how to set attributes on widgets that are ignored by the CSS styler (letter-spacing, for example)\n1. which properties are allowed on what widget and how to write an XML UI definition file\n1. examples of queueing draw operations on a widget manually to keep all widgets up-to-date\n\nThe most interesting take-away is probably this: the `GtkStyleProvider` in the form of a CSS styler works\n*very* poorly. For serious applications, using _libpango_ is a must. Also, for anyone who wishes to implement\nanything beyond the most basic user interfaces, custom drawing (and associated _libcairo_) is another must.\nTherefore, the GTK 3 documentation is as good as useless beyond being a reference for function declarations,\nsignal declarations, and property lists.\n\n### Usage:\nType a regular expression into the top text widget. The status box will turn green for valid regular expressions (as defined by POSIX)\nand red for invalid regular expressions.\n\nType a target string into the bottom box. All matches, as computed by `regexec`, will be highlighted in a green box with a blue border.\nThe empty string is never matched.\n\n\n### TODO:\n- Add a list view that allows saving regular expressions of interest. Allow output to a text file.\n- Add a Java mode which runs a Java program in daemon mode that tests regular expressions as defined in java.util.regex.\n- Write a custom `regcomp`--one that does not allow nonsense regular expressions like \"ab+*\".\n\n![Screenshot](/gtkregextester.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodekote%2Fgtkregextester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodekote%2Fgtkregextester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodekote%2Fgtkregextester/lists"}