阅读背景:

查找字符串中的子字符串,其中包含至多一个不同的字符-javascript

来源:互联网 

I am new in programing and right now I am working on one program. Program need to find the substring in a string and return the index where the chain starts to be the same. I know that for that I can use "indexOf". Is not so easy. I want to find out substrings with at moste one different char. I was thinking about regular expresion... but not really know how to use it because I need to use regular expresion for every element of the string. Here some code wich propably will clarify what I want to do:I am new in programing and right now I am worki




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: