{"id":25471274,"url":"https://github.com/dropdevrahul/fmsregex","last_synced_at":"2025-11-05T01:30:25.522Z","repository":{"id":65788499,"uuid":"593307167","full_name":"dropdevrahul/fmsregex","owner":"dropdevrahul","description":"Regex library  for go implemented using Finite State Machine","archived":false,"fork":false,"pushed_at":"2023-01-27T11:12:58.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T11:58:57.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dropdevrahul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-25T17:55:33.000Z","updated_at":"2024-06-20T11:58:57.391Z","dependencies_parsed_at":"2023-02-15T08:31:29.701Z","dependency_job_id":null,"html_url":"https://github.com/dropdevrahul/fmsregex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropdevrahul%2Ffmsregex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropdevrahul%2Ffmsregex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropdevrahul%2Ffmsregex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropdevrahul%2Ffmsregex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dropdevrahul","download_url":"https://codeload.github.com/dropdevrahul/fmsregex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239448274,"owners_count":19640453,"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":[],"created_at":"2025-02-18T09:37:56.756Z","updated_at":"2025-11-05T01:30:25.481Z","avatar_url":"https://github.com/dropdevrahul.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Simple project to demonstrate usage of Finite State Machines\n\n*Note*: original credit to rust video on same by [tsoding](https://www.youtube.com/watch?v=MH56D5M9xSQ\u0026t=6206s\u0026ab_channel=TsodingDaily)\n\nUses finite state machine to implement regex in Golang.\n\nCurrently supports '$' and '.' in usual sens of regex that is $ means regex match should end and . means any printable character can be present (only 1 character)\n\n```\npackage main\n\nimport (\n\t\"github.com/dropdevrahul/fmsregex/fmsregex\"\n)\n\nfunc main() {\n  f := fmsregex.FSM{}\n  f.Compile(\"abc.g$\")\n  res := f.Match(\"abceg\") // true\n  res = f.Match(\"abcfg\") // true\n  res = f.Match(\"abcega\") // false\n\n  f.Compile(\"abcg\")\n  res = f.Match(\"abcgagagdsajd\") // true\n\n  f.Compile(\"abcg$\")\n  res = f.Match(\"abcgagagdsajd\") // false\n\n  f.Compile(\"abc[0-9]$\")\n  res = f.Match(\"abc5\") // true\n\n  f.Compile(\"abc[A-Z]$\")\n  res = f.Match(\"abcG\") // true\n\n  f.Compile(\"abc[xyz]$\")\n  res = f.Match(\"abcy\") // true\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropdevrahul%2Ffmsregex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdropdevrahul%2Ffmsregex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropdevrahul%2Ffmsregex/lists"}