呵,C#/Java 通吃??int number = 999999999; // Must be integers...Regex re = new Regex(@"^(?:(?<=\d{3})(?=\d{3}))+$");search and replace with comma (,)