@AlSweigart I rather like them. Found it suddenly stuck better in my brain than before.
Conversation
Notices
-
Embed this notice
Kit Rhett Aultman (roadriverrail@signs.codes)'s status on Monday, 19-Jun-2023 01:16:11 JST Kit Rhett Aultman -
Embed this notice
Al Sweigart (alsweigart@mastodon.social)'s status on Monday, 19-Jun-2023 01:16:12 JST Al Sweigart Quick question about regex: Do these constant names make sense for these patterns?
ANYTHING is the lazy .*? pattern.
EVERYTHING is the greedy .* pattern.
SOMETHING is the lazy .+? pattern.
(I don't have a name for the greedy .+ pattern. Maybe ALL_OF_IT?)
And the . is ANYCHAR, while the escaped \. is PERIOD.
Are these names intuitive?
-
Embed this notice