what don't you understand? do you not know what the game/I am asking you to do?
Nicholas Nelson
what "regex" is
Liam Taylor
regular expression. it says in the image.
Nicholas Scott
yes but you can explain what is ^[pYD]\w+ mean?
Blake Barnes
>can explain what is ^[pYD]\w+ okay. >^ beginning of the string >[pYD] match any of the characters within the brackets >\w match any number, letter, or underscore >+ match the previous one or more times
Jackson Hughes
You're a very patient man
Jordan Lee
does someone have a regex matching game but only for lex/flex? gotta exercise on that
Liam Young
^(pob0|Y0GH|Dhtg)$
Grayson Rodriguez
>17 characters
Jackson Wright
Why would you not just use ^[pYD].*[0Hg]? It's more readable.
You take the first and last characters, then match everything between them. Add a $ at the end of the expression maybe. What OP posted doesn't even work.
Henry Hernandez
> not just running $ echo "test1 > test2 > test3" | grep "expression"
Aiden Richardson
>You take the first and last characters, then match everything between them but that's not what i wanted to do. i just wanted to get the 3 i was supposed to. >What OP posted doesn't even work yes it does.
Sebastian Davis
...
Luke Foster
I mean if you have a regex like that I'd just do a "only 4 characters" one.
William Davis
Unsure if syntax is correct but you can save like three characters like this
[^mf5]
Easton Green
works on my machine.
Ayden White
maybe add a * idk
Jordan Flores
Why should any non-autistic person care about this?