首页 > 解决方案 > 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'.

标签: regex

解决方案


推荐阅读