阅读背景:

ruby中重复项之间的字符串捕获

来源:互联网 
string = 'xabcdexfghijk' 

In the example above, 'x' appears twice. I want to capture everything between the first 'x' and the next 'x'. Thus, the desired result is a new string that equals 'xabcdex'. Any ideas?In the example abo




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

分享到: