Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Httpsqs4j 客户端的 HttpsqsStatus 正则bug #24

Open
GoogleCodeExporter opened this issue May 22, 2015 · 0 comments
Open

Httpsqs4j 客户端的 HttpsqsStatus 正则bug #24

GoogleCodeExporter opened this issue May 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

修改为:
protected static Pattern pattern = Pattern.compile("HTTP Simple Queue Service 
v(.+?)\\s(?:.+?)\\sQueue Name: (.+?)\\sMaximum number of queues: (\\d+)\\sPut 
position of queue \\((\\d+)\\w+ lap\\): (\\d+)\\sGet position of queue 
\\((\\d+)\\w+ lap\\): (\\d+)\\sNumber of unread queue: (\\d+)");

主要当put第二轮的时候\\d+nd 而原来在正则还是匹配 
\\d+st改成 (\\d+)\\w+:
Queue Name: low
Maximum number of queues: 1000000
Put position of queue (2nd lap): 29068
Get position of queue (1st lap): 997815
Number of unread queue: 31253

Original issue reported on code.google.com by [email protected] on 21 Oct 2011 at 3:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant