-
Notifications
You must be signed in to change notification settings - Fork 18
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
some thing wrong with regex.search #34
Comments
sorry for the late reply: is there a chance you could attach the file you are trying to parse? The first ~20 lines should be sufficient I think. |
In case you did also use the file to parse from the
|
Or run this:
|
Sorry about my information is not detail,
print("end:", end, type(end))end: 9223372036854775807 <class 'int'>---------------------------------
import sys print("maxsize:", sys.maxsize, type(sys.maxsize)) print("hello, there"[0:sys.maxsize])maxsize: 9223372036854775807 <class 'int'> hello, there
…------------------ 原始邮件 ------------------
发件人: "cp2k/cp2k-output-tools" ***@***.***>;
发送时间: 2023年12月10日(星期天) 凌晨4:42
***@***.***>;
***@***.******@***.***>;
主题: Re: [cp2k/cp2k-output-tools] some thing wrong with regex.search (Issue #34)
sorry for the late reply: is there a chance you could attach the file you are trying to parse? The first ~20 lines should be sufficient I think.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Nevermind, this already helps. My suspicion was that for some reason Could you try the following as well?
|
1 import sys 2 import regex ----> 3 print(regex.compile(r"b+").search("aaaabbbbbbcccc", 0, sys.maxsize)) TypeError: string indices must be integers
…------------------ 原始邮件 ------------------
发件人: "cp2k/cp2k-output-tools" ***@***.***>;
发送时间: 2023年12月11日(星期一) 凌晨0:10
***@***.***>;
***@***.******@***.***>;
主题: Re: [cp2k/cp2k-output-tools] some thing wrong with regex.search (Issue #34)
Nevermind, this already helps. My suspicion was that for some reason sys.maxsize is different on Windows, but it does not seem to be the case.
Could you try the following as well?
import sys import regex print(regex.compile(r"b+").search("aaaabbbbbbcccc", 0, sys.maxsize))
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
And does it work with this?
I am trying to figure out whether it's a general issue with the |
I found the template in README.md is working normally in Linux. And the tools is also not commonly in Windows. |
i just run the template at readme.md, and regex.search is not work.
Version:
python 3.11
regex 2023.8.8
click 8.1.3
numpy 1.24.3
The text was updated successfully, but these errors were encountered: