homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: re.match does not match word '{'
Type: behavior Stage: resolved
Components: Regular Expressions Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: ezio.melotti, mrabarnett, zk
Priority: normal Keywords:

Created on 2012年05月14日 12:50 by zk, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
msg160615 - (view) Author: zk (zk) Date: 2012年05月14日 12:50
>>> type(re.match('{', 'aaaa{'))
<type 'NoneType'>
>>> type(re.match('\{', 'aaaa{'))
<type 'NoneType'>
>>> type(re.search('\{', 'aaaa{'))
<type '_sre.SRE_Match'>
>>> type(re.search('{', 'aaaa{'))
<type '_sre.SRE_Match'>
msg160617 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012年05月14日 12:52
re.match matches only at the beginning of the string.
msg160624 - (view) Author: zk (zk) Date: 2012年05月14日 13:37
Oops. Sorry.
History
Date User Action Args
2022年04月11日 14:57:30adminsetgithub: 59011
2012年05月14日 13:37:49zksetmessages: + msg160624
2012年05月14日 12:52:09ezio.melottisetstatus: open -> closed

assignee: ezio.melotti
components: + Regular Expressions, - 2to3 (2.x to 3.x conversion tool)

nosy: + ezio.melotti, mrabarnett
messages: + msg160617
resolution: not a bug
stage: resolved
2012年05月14日 12:50:23zkcreate

AltStyle によって変換されたページ (->オリジナル) /