Click here to Skip to main content
15,887,083 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I love regular expressions Pin
jschell15-Dec-23 5:09
jschell15-Dec-23 5:09 
GeneralRe: I love regular expressions Pin
honey the codewitch15-Dec-23 5:11
mvahoney the codewitch15-Dec-23 5:11 
GeneralRe: I love regular expressions Pin
jschell15-Dec-23 6:20
jschell15-Dec-23 6:20 
GeneralRe: I love regular expressions Pin
honey the codewitch15-Dec-23 6:45
mvahoney the codewitch15-Dec-23 6:45 
GeneralRe: I love regular expressions Pin
jschell18-Dec-23 5:13
jschell18-Dec-23 5:13 
GeneralRe: I love regular expressions Pin
jacobsj14-Dec-23 5:19
jacobsj14-Dec-23 5:19 
GeneralRe: I love regular expressions Pin
Jeroen_R14-Dec-23 5:30
Jeroen_R14-Dec-23 5:30 
GeneralRe: I love regular expressions Pin
honey the codewitch14-Dec-23 5:34
mvahoney the codewitch14-Dec-23 5:34 
Jeroen_R wrote:
if it needs comments to be readable, something's very wrong.


That's true in the general case, but the exceptions are legion.

I'd argue regex is one of those exceptions. There is simply not a more compact and efficient way to tokenize or match flat text than DFA regular expressions.

Sure you could try writing it out, but I have. Try your hand at creating a more verbose language than regex and see what it looks like.

I wrote one that allows you to describe regular expressions using a BNF notation variant. The result required too much typing, let's put it that way, even though BNF is fairly compact as well.

If there's a better mousetrap, nobody seems to have found it yet.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: I love regular expressions Pin
Ron Anders14-Dec-23 6:18
Ron Anders14-Dec-23 6:18 
GeneralRe: I love regular expressions Pin
Gerry Schmitz14-Dec-23 7:05
mveGerry Schmitz14-Dec-23 7:05 
GeneralRe: I love regular expressions Pin
honey the codewitch14-Dec-23 7:18
mvahoney the codewitch14-Dec-23 7:18 
GeneralRe: I love regular expressions Pin
BernardIE531715-Dec-23 11:46
BernardIE531715-Dec-23 11:46 
GeneralRe: I love regular expressions Pin
Br.Bill8-Jan-24 11:46
Br.Bill8-Jan-24 11:46 
GeneralRe: I love regular expressions Pin
BernardIE531714-Dec-23 8:56
BernardIE531714-Dec-23 8:56 
GeneralRe: I love regular expressions Pin
honey the codewitch14-Dec-23 10:15
mvahoney the codewitch14-Dec-23 10:15 
GeneralRe: I love regular expressions Pin
jschell15-Dec-23 6:23
jschell15-Dec-23 6:23 
GeneralRe: I love regular expressions Pin
BernardIE531715-Dec-23 11:48
BernardIE531715-Dec-23 11:48 
GeneralQR code insanity Pin
jschell13-Dec-23 4:07
jschell13-Dec-23 4:07 
GeneralRe: QR code insanity Pin
dandy7213-Dec-23 4:40
dandy7213-Dec-23 4:40 
GeneralRe: QR code insanity Pin
fgs196313-Dec-23 4:54
fgs196313-Dec-23 4:54 
GeneralRe: QR code insanity Pin
Richard MacCutchan13-Dec-23 5:12
mveRichard MacCutchan13-Dec-23 5:12 
GeneralRe: QR code insanity Pin
fgs196313-Dec-23 5:19
fgs196313-Dec-23 5:19 
GeneralRe: QR code insanity Pin
Richard MacCutchan13-Dec-23 5:23
mveRichard MacCutchan13-Dec-23 5:23 
GeneralRe: QR code insanity Pin
fgs196313-Dec-23 5:27
fgs196313-Dec-23 5:27 
GeneralRe: QR code insanity Pin
Richard MacCutchan13-Dec-23 5:56
mveRichard MacCutchan13-Dec-23 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.