{"id":23393519,"url":"https://github.com/joaopcm/regular-expressions","last_synced_at":"2025-07-24T00:40:37.713Z","repository":{"id":136324488,"uuid":"546886776","full_name":"joaopcm/regular-expressions","owner":"joaopcm","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-06T20:14:53.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T12:34:18.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/joaopcm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-06T20:13:46.000Z","updated_at":"2022-12-10T00:32:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"75b8fa52-40ab-471b-951b-32d1331ab25c","html_url":"https://github.com/joaopcm/regular-expressions","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/joaopcm%2Fregular-expressions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopcm%2Fregular-expressions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopcm%2Fregular-expressions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopcm%2Fregular-expressions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaopcm","download_url":"https://codeload.github.com/joaopcm/regular-expressions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878046,"owners_count":21011157,"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-12-22T05:28:58.523Z","updated_at":"2025-04-08T15:52:55.404Z","avatar_url":"https://github.com/joaopcm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Regex study\n\nTip: use [Regex101](regex101.com) website to create your regular expressions :)\n\n### Example 1\n#### Regex:\n```\n^\\d{3}.\\d{3}.\\d{3}-\\d{2}$\n```\n\n#### Data:\n123.123.123-12\n\n321.123.345-20\n\n200.300.500-19\n\n#### Removing special chars:\nReplace [.-] with empty\n\n---\n\n### Example 2\n#### Regex:\n```\n^(\\w+),\\s(\\w+)$\n```\n\n#### Data:\nMelo, Joao\n\nWendel, Erick\n\nGomes, Rhaiany\n\n#### Generate a JSON with first and last names:\nReplace `^(\\w+),\\s(\\w+)$` with `{firstName: \"$2\", lastName: \"$1\"}`\n\n\n### Example 3\n#### Regex:\n```\n\\[(.*?)\\]\\(([http|https].*?)\\)\n```\n\n#### Data:\n```txt\n[Erick Wendel](https://erickwendel.com) faz palestras e você deveria seguí-lo lá no [Twitter](http://twitter.com/erickwendel_) ou até no [Instagram](https://instagram.com/erickwendel_)\n\nAh, e você pode também pesquisar no [Google](https://google.com) ou\n[Yahoo](https://yahoo.com)\n\nVai que vai!\n```\n\n#### Generate an HTML based on the markdown text:\nReplace `\\[(.*?)\\]\\(([http|https].*?)\\)` with `\u003ca href=\"$2\"\u003e$1\u003c/a\u003e`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaopcm%2Fregular-expressions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaopcm%2Fregular-expressions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaopcm%2Fregular-expressions/lists"}