var str = "abc123456";
var r1 = str.match(/^[a-z|A-Z]+/gi);
var r2 = str.match(/\d+$/gi);
07-13
1534
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-21
2180
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
var str = "abc123456";
var r1 = str.match(/^[a-z|A-Z]+/gi);
var r2 = str.match(/\d+$/gi);