Python Forum
Help understanding RegEx logic/output
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help understanding RegEx logic/output
#2
\w matches a single character (only), so the parentheses (\w) captures a single character.

Any remaining characters are matched by the \w* expression. The asterisk allows it to match repeatedly. Without the parentheses, the characters are not captured.
pyNewbee likes this post
Reply


Messages In This Thread
Help understanding RegEx logic/output - by pyNewbee - Nov-14-2020, 06:45 PM
RE: Help understanding RegEx logic/output - by bowlofred - Nov-14-2020, 07:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Common understanding of output processing with conditional statement neail 6 973 Sep-17-2023, 03:58 PM
Last Post: neail
  Understanding Regex Groups matt_the_hall 5 2,886 Jan-11-2021, 02:55 PM
Last Post: matt_the_hall
  understanding output of bytes/raw data rootVIII 3 2,834 Aug-01-2019, 01:00 PM
Last Post: rootVIII
  Understanding "help()" output? Athenaeum 4 3,963 Sep-29-2017, 09:47 PM
Last Post: nilamo
  help on understanding this output landlord1984 1 2,993 Mar-08-2017, 08:29 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

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