用于验证URL格式的标准C ++方法? [英] Standard C++ method for validating a URLs format?

查看:215
本文介绍了用于验证URL格式的标准C ++方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的符合标准的方法来检查网址字符串是否是有效的格式?

Is there a easy standards-compliant way to check if a URL string is a valid format? Either through a specific URL-type class or maybe someone could show me how to do a regex validation of it?

推荐答案

不,没有人能够通过一个特定的URL类型类或者某人可以告诉我如何做一个正则表达式验证?没有一个。

Nope, there isn't one.

在Windows上,您可以查看 IsValidURL() function

On windows, you could take a look at the IsValidURL() function

这篇关于用于验证URL格式的标准C ++方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆