如何在正则表达式验证中仅设置天(星期二). [英] how can we set only day(wenesday) in regural expression validation.

查看:100
本文介绍了如何在正则表达式验证中仅设置天(星期二).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在正则表达式验证中仅设置日期(星期二).我想做自己的正则表达式.如果有人可以帮助我或给我一个想法,我该如何使其变得简单.

how can we set only day(wenesday) in regural expression validation. I want to make my own regular expression. If any one can help me or gives me an idea how can i makes it easy.

推荐答案

尝试以下方法:\b(Wednesday)
经过测试: Regex测试器 [ ^ ],其中:Sunday, Monday, Tuesday, 星期三 , Thursday, Friday, Saturday作为输入字符串.
Try this: \b(Wednesday)
Tested on: Regex Tester[^] with: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday as input string.


试试这个:
http://www. codeguru.com/cpp/cpp/cpp_mfc/parsing/article.php/c4093/Write-Your-Own-Regular-Expression-Parser.htm [ http://www.regular-expressions.info/examples.html [
Try this:
http://www.codeguru.com/cpp/cpp/cpp_mfc/parsing/article.php/c4093/Write-Your-Own-Regular-Expression-Parser.htm[^]
http://www.regular-expressions.info/examples.html[^]


这篇关于如何在正则表达式验证中仅设置天(星期二).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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