一、安装依赖包 依赖包说明: 1、编译依赖 gcc 环境,所以需要:gcc gcc-c++; 2、PCRE(Perl Compatible Regular Expressions) 是一个Perl库,包括 perl 兼容的正则表达式库。nginx 的 http 模块使用 pcre 来解析正则表达式, ...
分类:
其他好文 时间:
2019-04-30 12:26:14
阅读次数:
119
https://leetcode.com/problems/regular expression matching/ cpp class Solution { public: bool isMatch(string s, string p) { / 动态规划问题: dp[i][j]代表s[0...i ...
分类:
其他好文 时间:
2019-04-25 17:32:02
阅读次数:
135
1.One of your databases has archive logging enabled and RMAN backups are taken at regular intervals. The data file for the users tablespace is corrupt ...
分类:
其他好文 时间:
2019-04-23 11:01:40
阅读次数:
155
场景:在写两台ubuntu之间需要交互式登录操作shell脚本。就是在ubantu A上,做点什么事,然后远程到ubuntu B上进行操作,shell脚本存放在ubuntu A上。 我遇到这个报错:not a regular file,我在ubantu A上查了老半天,没有问题,是ubantu B上 ...
分类:
其他好文 时间:
2019-04-20 19:53:45
阅读次数:
243
Isaacs, $\textit{Character Theory of Finite Groups}$, Problems(1.9) Let $G$ be a group and $F$ a field of characteristic $p$. Suppose $p\mid|G|$, then ...
分类:
其他好文 时间:
2019-04-20 10:07:57
阅读次数:
134
Linux CentOS7安装Nginx 1、gcc 安装 安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境。 2、PCRE pcre-devel 安装 PCRE(Perl Compatible Regular Expressions) 是一个Perl库,包括 perl 兼容 ...
分类:
其他好文 时间:
2019-04-20 00:17:45
阅读次数:
190
题目链接:https://leetcode-cn.com/problems/regular-expression-matching/这道题用到了动态规划:关于动态规划请参考这篇博文:https://blog.csdn.net/u013309870/article/details/75193592写的... ...
分类:
其他好文 时间:
2019-04-18 22:07:20
阅读次数:
193
正则表达式 正则表达式 正则表达式,又称规则表达式。(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式通常被用来检索、替换那些符合某个模式(规则)的文本。 https://www.jb51.net/tools/zhengz ...
分类:
其他好文 时间:
2019-04-17 22:11:21
阅读次数:
192
Regular Expression Matching 问题简介:给定字符串,给定匹配模式,判断字符串是否满足匹配模式 问题详解:一共有两种特殊模式: ‘.’ 匹配任何单个字符 ‘*’ 匹配前面元素的零个或多个 注:匹配的是整个给定字符串,不是部分 举例: 1: 输入: s = “aa” p = “ ...
分类:
其他好文 时间:
2019-04-15 23:36:03
阅读次数:
321
re.sub的功能 re是regular expression的缩写,表示正则表达式;sub是substitude的缩写,表示替换 re.sub是正则表达式的函数,实现比普通字符串更强大的替换功能 sub(pattern,repl,string,count=0,flag=0) 1))pattern正 ...
分类:
其他好文 时间:
2019-04-15 16:05:43
阅读次数:
117