-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Problem with Series.str.match #2074
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
Comments
match searches only at the beginning of the string. I guess you are re.match(pattern, string, If zero or more characters at the beginning of string match the regular On Mon, Oct 15, 2012 at 10:21 PM, Skipper Seabold
|
The problem is that you have no groups in the regular expression:
A better behavior in the case where |
I showed the expected behavior of re.match in the code example. That's why I stuck the .* at the beginning. What am I missing? |
Well, if you look at the implementation of |
Ah, I expected it to return something I can evaluate to True/False to make an index. Will adjust expectations. |
Very open to API improvements here...put all those functions together over the course of about a day or so |
It's (sort of) clear in the documentation that it finds groups but I find myself right now just wanting to know if something matches rather than to pull out the groups. I can see use cases for both though. |
you could have a |
Not sure yet what's going on here. Doesn't appear to be a unicode issue
The text was updated successfully, but these errors were encountered: