开发者

C + + and PCRE question

开发者 https://www.devze.com 2023-02-07 04:51 出处:网络
I want to ask you how to match this MD5 hash in C + + with PCRE: # Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html

I want to ask you how to match this MD5 hash in C + + with PCRE:

# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by libcurl! Edit at yo开发者_如何转开发ur own risk.

mysite.com FALSE   /       FALSE   0       SSID    25f11fe19d2ffd98378c57432cd8d4f2


Umm.

/\S+/

would match one or more non-space characters. To be more specific,

/[a-f0-9]+/

would match MD5 sums because they are numbers and letters a-f.

0

精彩评论

暂无评论...
验证码 换一张
取 消