Skip to content

Instantly share code, notes, and snippets.

@b-epelbaum
Created February 19, 2023 18:34
Show Gist options
  • Select an option

  • Save b-epelbaum/42ff2f73d0d76fda5d869cf1a32e9749 to your computer and use it in GitHub Desktop.

Select an option

Save b-epelbaum/42ff2f73d0d76fda5d869cf1a32e9749 to your computer and use it in GitHub Desktop.
RegEx for URLs
std::regex_match (job_str.toStdString(), std::regex(R"(^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$)" ))) // we have URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment