{"id":16273514,"url":"https://github.com/jimhester/regular","last_synced_at":"2025-10-29T12:39:25.254Z","repository":{"id":21046854,"uuid":"24345616","full_name":"jimhester/regulaR","owner":"jimhester","description":"Regular expressions for humans, a port of Ruby's Regularity library to R (see https://github.com/kevinushey/rex for current development)","archived":false,"fork":false,"pushed_at":"2014-09-24T13:52:16.000Z","size":127,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T21:56:21.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimhester.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}},"created_at":"2014-09-22T21:06:38.000Z","updated_at":"2019-07-03T06:32:19.000Z","dependencies_parsed_at":"2022-09-13T22:42:52.019Z","dependency_job_id":null,"html_url":"https://github.com/jimhester/regulaR","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/jimhester%2FregulaR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimhester%2FregulaR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimhester%2FregulaR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimhester%2FregulaR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimhester","download_url":"https://codeload.github.com/jimhester/regulaR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031028,"owners_count":20386534,"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":"2024-10-10T18:24:34.300Z","updated_at":"2025-10-29T12:39:20.203Z","avatar_url":"https://github.com/jimhester.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"#RegulaR\nRegular expressions for humans, a port of Ruby's Regularity library\n\n[![Build Status](https://travis-ci.org/jimhester/regulaR.png?branch=master)](https://travis-ci.org/jimhester/regulaR)\n\n## Development of this library is moving to [rex](https://github.com/kevinushey/rex), which provides a more robust R friendly framework\n\nregulaR is a human friendly regular expression builder for R. While regular\nexpressions are a powerful way to match text, they are sometimes difficult to\ndocument and understand when written.  R also has escaping issues with regular\nexpression this library hopes to solve.\n\nSo instead of writing\n```r\nregex = \"^[0-9]{3}-[A-Za-z]{2}#?(?:a|b)c{2,4}\\\\$$\"\n```\n\nYou can write\n```r\n\nregex = regulaR() %\u003e% start_with(3, digits) %\u003e%\n  then('-') %\u003e%\n  then(2L, letters) %\u003e%\n  maybe('#') %\u003e%\n  one_of(c('a','b')) %\u003e%\n  between(c(2L,4L), 'c') %\u003e%\n  end_with('$')\n```\n\n### See Also\n- [rex](https://github.com/kevinushey/rex) for an alternate (better?) implementation\n\nThis package is inspired by @hadley's [tweet](https://twitter.com/hadleywickham/status/514102801081708544)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimhester%2Fregular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimhester%2Fregular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimhester%2Fregular/lists"}