Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
coolq48267y@abhi1401
I think .* works because it all depends on how you use those extra characters. -
@erikdreyer11 and you can find online regex testers that really come in useful when you try to debug a long one, showing you the groups, the alternates, and explaining the effect of each pattern on mouse hover
-
-
coolq48267y@beleg
Here
01110011 01110001 01110010 01110100 00101000 00110010 00101001
"sqrt(2)" in binary. Who said normal strings and numbers can hold infinite lengths either? -
Teknas27517yBut then quantum computing happened.
Now your regex will fail and
Your screen will show BSOD
Your cpu might catch fire
The worlds gonna stop spinning. -
beleg31947y@coolq right, more precisely, you can have the code of the Turing machine (or any coding) that describes (or prints out) any "computable" infinite string. But there are really some strings that cannot be computed. Check out Chaitin's Ω number for instance. (At least you need UTF for this one 😊)
-
coolq48267y@beleg
Yep, absolutely!
Pi is another string that cannot be computed without showing just the reference for it. -
Related Rants
Technically,
(0|1)*
is the regular expression for everything.
undefined
binary