码迷,mamicode.com
首页 >  
搜索关键字:regular    ( 1979个结果)
[LeetCode]10.Regular Expression Matching
题目mplement regular expression matching with support for '.' and '*'.'.' Matches any single character. '*' Matches zero or more of the preceding element.The matching should cover the entire input string...
分类:其他好文   时间:2015-07-07 16:54:00    阅读次数:201
LeetCode211:Add and Search Word - Data structure design
Design a data structure that supports the following two operations:void addWord(word) bool search(word) search(word) can search a literal word or a regular expression string containing only letters a...
分类:其他好文   时间:2015-07-06 21:48:08    阅读次数:104
CF dp 一句话解题
wyq说刚入门oi 或是遇到瓶颈的时候就刷DP吧,虽然觉得这么刷CF题有点浪费,但是还是挺爽的,按照solved排序做的,前面的题都挺水的(忘记记录了混蛋),就不写了,从5C开始写解题CF5 C. Longest Regular Bracket Sequence:题目大意,给一个括号序列,让你求最长...
分类:其他好文   时间:2015-07-06 15:36:02    阅读次数:94
[LeetCode] Regular Expression Matching
This problem has a typical solution using Dynamic Programming. We define the state P[i][j] to be true if s[0..i) matches p[0..j) and false otherwise. ...
分类:其他好文   时间:2015-07-06 01:23:06    阅读次数:97
正则表达式解析
正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。在很多文本编辑器里,正则表达式通常被用来检索、替换那些符合某个模式的文本。
分类:其他好文   时间:2015-07-03 00:06:05    阅读次数:213
Linux.CommanlineTool.grep
grep1 grep [options] PATTERN [FILE...]2 grep [options] [-e PATTERN | -f FILE] [FILE...]1. grep的Regular ExpressionRef[1]A): 匹配单字符reg ex中基本的构建块是匹配单个字符的r...
分类:Web程序   时间:2015-07-02 17:18:01    阅读次数:181
linux 正则匹配小记
1.使用正则匹配文件名 ## grep -n ‘[^\/][a-zA-Z0-9]*[.a-zA-Z0-9][a-zA-Z0-9]*$‘ regular_express.txt /etc/init.d/hello.h /etc/init.d/hehe 2.使用sed提取出网卡IP ? (1) # ifconfig eth0 |grep ‘inet addr...
分类:系统相关   时间:2015-07-01 20:46:45    阅读次数:172
用正则表达式验证邮箱和手机号
正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。...
分类:移动开发   时间:2015-07-01 12:17:40    阅读次数:139
Regular Ball Super Ball
Description:Regular Ball Super BallCreate a class Ball.Ball objects should accept one argument for "ball type" when instantiated.If no arguments are g...
分类:其他好文   时间:2015-06-30 20:21:38    阅读次数:128
(转)Linux grep
文章转自http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2856896.html简介grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印...
分类:系统相关   时间:2015-06-29 08:44:33    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!