4 ms·
I'm sorry, but I don't think you're understanding. Either because you're embarrassed or there's something else going on. Please set aside your ego if that's the
by ethanwillis 4y ago
I'm sorry, but I don't think you're understanding. Either because you're embarrassed or there's something else going on. Please set aside your ego if that's the problem because I never said the substitute function is a regex.
- svnpenn 4y agohttps://news.ycombinator.com/item?id=31804367 https://news.ycombinator.com/item?id=31804367
- ethanwillis 4y agoDo you not know what the word class means in this context?
- svnpenn 4y agoIf "a class of" means "a subsection of" (replace "subsection" with whatever word you feel is semantically correct), then your comment is wrong. A substitute command is just that, a command. It is not, and never has been a regex, or any part of it. Heres some headings to help you understand: ## Parts of regex . [a-z] $ ## items that use regex m// s/// qr//
- ethanwillis 4y agoThat's not what it means at all, please read more closely and get it together. You won't learn much by reacting this poorly to things you don't understand. Remember when I said A subset of regexes (that OP showed) from the total class of regexes that I mentioned in my comment are: This clearly implies that a "subset" or "subsection" is not the same as a class. I well defined in multiple ways what I meant by class while you continue to bury your head in the sand.
- svnpenn 4y agoIt seems you fail to understand what class means. Regardless of what you think it means, you're using it wrong. The command given in the example is: - not a regex - not a class of regex - not a part of regex in general please educate yourself, as you seem to have trouble understanding the scope of what regex is.
- ethanwillis 4y agoEducate me on what you think a class is then? Because I think you're conflating it with a set, which it is not.
- svnpenn 4y agothe example given was a command, not a regex, and not a class of regex would you call an apple, a class of an orange?
- ethanwillis 4y agoYou're refusing to define what a class is.. when I think the crux of the problem with this conversation is that we don't have the same definition. You think I'm using the word incorrectly. So please tell me what you think a "class" and what it is in relation to a "set/subsection"
- svnpenn 4y agothere is no definition that you can attach to "class", that makes it correct for this usage, unless you want to change what the word means. Heres a good quote [1]: > an expression /re/ can be used to specify a range of lines (matching the pattern), which can be combined with other commands So the command contains a regex, but its not a regex itself, and its not a class of regex. Sorry, but you don't get to just say "well that's not my definition", and get out of it. Sometimes, you're just objectively wrong. It would be like saying you "donated" something, when you really "pledged" it. 1. https://wikipedia.org/wiki/Regular_expression#Delimiters https://wikipedia.org/wiki/Regular_expression#Delimiters