正则分割获取字符串中的数字部分(包括连续数字)(连续数字的分割获取) String str = "2P15S"; String[] nums = Regex.Split(str, "[a-zA-Z]+"); NotePad++正则搜索 ^(?=.*条件1)(?=.*条件1).*$