Python Forum
trying to recall a regex for re.split()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trying to recall a regex for re.split()
#5
\d matches a single digit, so \d\d matches exactly 2. If you wanted exactly 3, you could write \d{3}, for example. The documentation tells you the syntax, so you should go there to see what things are possible.Then, there are regular expression testers, e.g. https://pythex.org/ where you can try them out.
Reply


Messages In This Thread
RE: trying to recall a regex for re.split() - by ndc85430 - May-18-2022, 04:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Split pdf in pypdf based upon file regex standenman 1 2,307 Feb-03-2023, 12:01 PM
Last Post: SpongeB0B
  recall cool_person 1 1,106 May-07-2022, 08:04 AM
Last Post: menator01

Forum Jump:

User Panel Messages

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