regex - Can you use regular expressions to find all possibilities of 6 characters from a 10 character string in another string?
问题描述
Can you use regular expressions to find all possibilities of 6 characters from a 10 character string in another string?
Let's say you have a string '0123456789'. You have another string '123456'. Is there a way to use regular expressions to say there is a match between '0123456789' and '123456'? This regular expression would also need to match '012345', '234567', '345678', '456789' and '0012345600'.
解决方案
推荐阅读
- java - Java 8 Predicate - 为什么不能加入通配符泛型谓词?
- javascript - for循环中的索引对象,单击时保留信息
- elasticsearch - Filebeat 没有在 Elasticsearch 中创建索引
- javascript - 模态没有正确关闭
- html - Notepad++中的文字如何去掉红色下划线?
- git - 使用 gnu make 提取 6 个字符的子字符串
- jetty - 无法连接远程码头 ajp 服务
- java - 在执行 getKey() 时,在令牌 USB 上存储密钥会给出不同的密钥(几个不同的字节)
- libgdx - 如何将十六进制颜色值转换为 libgdx 颜色?
- mysql - 如何在 SQL 中删除条件父子关系