【问题标题】:Get the last match of digits between definite strings获取确定字符串之间的最后一个数字匹配
【发布时间】:2013-10-24 08:46:28
【问题描述】:

让我有一个像

这样的字符串
<sip:73512598312@test.ru>;index=1<sip:73512598313@test.ru;user=phone;cause=302>;index=1.1

如何使用 boost 正则表达式从中获取 73512598313?

【问题讨论】:

    标签: regex boost


    【解决方案1】:

    我猜你可以使用(?&lt;=sip:)\d+(?=@test.ru;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-22
      • 1970-01-01
      相关资源
      最近更新 更多