{"id":13743419,"url":"https://github.com/VerbalExpressions/QtVerbalExpressions","last_synced_at":"2025-05-09T01:30:50.640Z","repository":{"id":10483783,"uuid":"12662832","full_name":"VerbalExpressions/QtVerbalExpressions","owner":"VerbalExpressions","description":null,"archived":false,"fork":false,"pushed_at":"2015-02-08T19:09:10.000Z","size":170,"stargazers_count":65,"open_issues_count":1,"forks_count":11,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-25T16:46:32.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VerbalExpressions.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":"2013-09-07T09:45:45.000Z","updated_at":"2025-04-02T05:47:50.000Z","dependencies_parsed_at":"2022-07-30T18:38:08.438Z","dependency_job_id":null,"html_url":"https://github.com/VerbalExpressions/QtVerbalExpressions","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/VerbalExpressions%2FQtVerbalExpressions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerbalExpressions%2FQtVerbalExpressions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerbalExpressions%2FQtVerbalExpressions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerbalExpressions%2FQtVerbalExpressions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerbalExpressions","download_url":"https://codeload.github.com/VerbalExpressions/QtVerbalExpressions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174219,"owners_count":21865834,"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-08-03T05:00:46.510Z","updated_at":"2025-05-09T01:30:50.308Z","avatar_url":"https://github.com/VerbalExpressions.png","language":"C++","funding_links":[],"categories":["Miscellaneous","排序","多项混杂","Libraries.","Libraries"],"sub_categories":["多项混杂","New Functionality"],"readme":"[![Qt Pods](http://qt-pods.org/assets/logo.png \"Qt Pods\")](http://qt-pods.org)\n\nQtVerbalExpressions\n===================\n\n## Qt Regular Expressions made easy\n\nThis Qt lib is based off of the C++ [VerbalExpressions](https://github.com/VerbalExpressions/CppVerbalExpressions) library by [whackashoe](https://github.com/whackashoe).\n\n### Testing if we have a valid URL\n\n```cpp\nauto expression = QVerbalExpressions()\n  .searchOneLine()\n  .startOfLine()\n  .then(\"http\")\n  .maybe(\"s\")\n  .then(\"://\")\n  .maybe(\"www.\")\n  .anythingBut(\" \")\n  .endOfLine();\n\nqDebug()\n  \u003c\u003c expression // ^(?:http)(?:s)?(?:://)(?:www.)?(?:[^ ]*)$\n  \u003c\u003c expression.test(\"https://www.google.com\"); // true\n```\n\n##API \n\n### Terms\n* .anything()\n* .anythingBut(const QString\u0026 value)\n* .something()\n* .somethingBut(const QString\u0026 value)\n* .endOfLine()\n* .find(const QString\u0026 value)\n* .maybe(const QString\u0026 value)\n* .startOfLine()\n* .then(const QString\u0026 value)\n\n### Special characters and groups\n* .any(const QString\u0026 value)\n* .anyOf(const QString\u0026 value)\n* .br()\n* .lineBreak()\n* .range(const std::initializer_list\u003cQString\u003e\u0026 args)\n* .tab()\n* .word()\n\n### Modifiers\n* .withAnyCase()\n* .searchOneLine()\n* .searchGlobal()\n\n### Functions\n* .replace(const QString\u0026 source, const QString\u0026 value)\n* .test()\n\n### Other\n* .add(expression)\n* .multiple(const QString\u0026 value)\n* .alt()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVerbalExpressions%2FQtVerbalExpressions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVerbalExpressions%2FQtVerbalExpressions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVerbalExpressions%2FQtVerbalExpressions/lists"}