spujb@lemmy.cafe to 196@lemmy.blahaj.zoneEnglish · 5 days agorulefiles.catbox.moeimagemessage-square56linkfedilinkarrow-up1249arrow-down16file-text
arrow-up1243arrow-down1imagerulefiles.catbox.moespujb@lemmy.cafe to 196@lemmy.blahaj.zoneEnglish · 5 days agomessage-square56linkfedilinkfile-text
the original said reggae but i misread it as regex and got this idea lol original comic artist: thisstupidtwink@insta
minus-squareblueduck@piefed.sociallinkfedilinkEnglisharrow-up6·5 days agoPCRE supports inline comments: foo(?# match literal foo)\d+ Also verbose mode pattern = re.compile(r""" ^ # start of string [A-Z]{2} # two uppercase letters \d{4} # four digits $ # end of string """, re.VERBOSE)
PCRE supports inline comments:
foo(?# match literal foo)\d+Also verbose mode
pattern = re.compile(r""" ^ # start of string [A-Z]{2} # two uppercase letters \d{4} # four digits $ # end of string """, re.VERBOSE)