Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AttributeError Regex
#3
(Jun-22-2019, 01:26 PM)ThomasL Wrote:
Quote:re.search(pattern, string, flags=0)
Scan through string looking for the first location where the regular expression pattern produces a match, and return a corresponding match object. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the string.
So the question is: if you print(mo) what value is shown?

it show "None", i think it don't recognize the string or my compile() has mistake
Reply


Messages In This Thread
AttributeError Regex - by linh_py - Jun-22-2019, 12:51 PM
RE: AttributeError Regex - by ThomasL - Jun-22-2019, 01:26 PM
RE: AttributeError Regex - by linh_py - Jun-22-2019, 01:33 PM
RE: AttributeError Regex - by snippsat - Jun-22-2019, 02:22 PM
RE: AttributeError Regex - by linh_py - Jun-22-2019, 03:33 PM
RE: AttributeError Regex - by DeaD_EyE - Jun-23-2019, 09:01 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020