this post was submitted on 24 Nov 2023
303 points (100.0% liked)
196
16478 readers
2406 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
oh you know how to code? name every variable
/^[a-zA-Z_]\w*$/
i think... most languages at least
That's variables and keyword.
If you have a regex for a languages keywords you can substract as they are closed under that operation.
good point. some languages (like rust) also support
r#
prefix to use a keyword as a variable also