zoukankan
html css js c++ java
正则表达式生成器
正则表达式生成器
对正则表达式很头疼,是不是?每次看到都觉得像看天书似的,别说让人自己整一个出来了。下面这个网站可以帮你生成正则表达式,而且还可以根据不同的语言生成不同的代码示例,很强大。
http://www.txt2re.com/index.php3
打开上面那个网页,你会看到有三步。
第一步,输出你想匹配的一个文本示例,然后点“Show Machted”,于是进入第二点。
第二步,当你看到那花花绿绿的界面是不要头大(那个配色也太可怕了),那是这个会把你的这个字串每个字符都拆出来,并把单词分隔。于是,你可以点击那些花绿格子间的链接来组织你的正规表达式。,比如:c表示任意字符,还有什么int,day,string之流的东西。(相当ugly的界面)在这一步,你一点要点点什么,不然不会进入第三步。
第三步,选择一个编程语言,然后你可以看到相关的代码示例。语言支持:Perl PHP Python Java Javascript ColdFusion C C++ Ruby VB VBScript J#.net C#.net C++.net VB.net (这么多)
总之,这是一个很酷,但却界面很丑陋的在线的正则表达式生成工具。
查看全文
相关阅读:
Codeforces467C George and Job
Codeforces205E Little Elephant and Furik and RubikLittle Elephant and Furik and Rubik
Codeforce205C Little Elephant and Interval
51nod1829 函数
51nod1574 排列转换
nowcoder35B 小AA的数列
Codeforce893E Counting Arrays
gym101612 Consonant Fencity
CodeForces559C Gerald and Giant Chess
CodeForces456D A Lot of Games
原文地址:https://www.cnblogs.com/Leo_wl/p/3533749.html
最新文章
Educational Codeforces Round 32
codeforeces GYM 101142 C
codeforces 55d 数位dp(整除问题)
codeforces 869e 二维树状数组或者线段树+hash
codeforces 867e 思维
hdu1024 最大m子串和
Educational Codeforces Round 30 D
Educational Codeforces Round 30 C
Educational Codeforces Round 30 B
Educational Codeforces Round 30 A
热门文章
gym 101081k
codeforces 803e
Codeforces 863e
Codeforces Round #439 C
Codeforce432D Prefixes and Suffixes
Codeforce432 Prime Swaps
Codeforces378C Maze
Codeforces914D Bash and a Tough Math Puzzle
Codeforces914C Travelling Salesman and Special Numbers
Codeforces467 Fedor and Essay
Copyright © 2011-2022 走看看