正则表达(Regexp)类
更新:2017/06/18 改变[]集合的表格大小 80% ---》 100%
定义 | 正则表达: 和字符串匹配的模式(pattern)的写法 正则表达(Regexp)类: 保存正则表达的类 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
生成 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
匹配 | =~, !~ a = /.../ a =~ "this is a target to matching" 注: 默认不匹配改行符 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
匹配模式 pattern |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
元字符 matacharacter |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
方法 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
可选设定 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
获取匹配部分 | 记法: mix
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||