我正在用Swift开发一个应用程序,我需要从一个字符串中捕获8个数字。这是字符串:index.php?page=index&l=99182677我的模式是:&l=(\d{8,})这是我的代码:varyourAccountNumber="index.php?page=index&l=99182677"letregex=try!NSRegularExpression(pattern:"&l=(\\d{8,})",options:NSRegularExpressionOptions.CaseInsensitive)letrange=NSMakeRange(0,yourAccountNumbe