My Account Subscribe Help About
Sign In | Register FREE
Saturday, May 16, 2026
Burnham cleared to run for selection in pivotal by-electionHow Rayner, Streeting and Burnham weakened PM in 12 hours of political dramaTrump warns Taiwan against declaring independence, hours after summit with China's XiSwitzerland to open secret files on Auschwitz 'Angel of Death' Mengele'They took £20,000 I didn't owe': Parents hit by child maintenance errorsElectric motorbike teen detained for killing a grandmother on zebra crossingJudge declares another mistrial in Harvey Weinstein New York rape caseBritish firm vying to build next Red Arrows jets collapsesLebanon says six killed in Israeli strike as US announces ceasefire extensionTrump says 20-year nuclear programme suspension by Iran would be enoughEurovision is almost here! But how much do you know about Europe's biggest pop spectacular?Eleven 'far-right agitators' banned from UK ahead of rally, government saysI tried the UK's 'saltiest' sandwich - here's what I learnedEurovision final: Sex, violins and seven other things to look out forWhat is a 'safe death'? Mentally ill woman asks for assisted dying in CanadaAlleged murder of Aboriginal girl highlights Australia's deep inequalitiesThe Papers: 'Burnham will push to be next PM' and 'Dosh and Becks'What Makerfield thinks of by-election - and if Burnham can winHow would a Labour leadership contest work?Teenager's family 'heartbroken' by meningitis deathBeckhams become billionaires as Oasis make rich list for first timeUS planning to criminally indict ex-Cuban leader Raúl CastroNHS staff accessed Southport victims' records 'inappropriately', hospital trust admitsSpring warmth set to return with 26C forecast next weekMan sought by police after making antisemitic threatsPalestinian leaders hold rare party meeting as polls show rising discontentBBC News appThe Week: How did Labour get here and where do they go now?Why Democrats are panicking about losing CaliforniaA cross-cultural rom-com about an assisted marriage
Forum » Software & Programming » Regular expressions — love them or hate them?

Regular expressions — love them or hate them?

admin
admin
Joined: Feb 2026

I've been writing regex for 3 years now and I still feel like I'm guessing half the time. The power is undeniable — a single regex can replace 50 lines of string parsing code. But reading someone else's regex is like reading hieroglyphics.

Do you love regex or dread it? Any tips for getting better?

admin
admin
Joined: Feb 2026

You know the famous quote: 'Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.' I feel this deeply.

admin
admin
Joined: Feb 2026

RegexBuddy is a great tool for building and testing regex visually. Also Perl's /x modifier lets you add comments and whitespace to make regex readable.

admin
admin
Joined: Feb 2026

The trick is building up from simple patterns. Start matching simple strings, then add one feature at a time. Don't try to write a complex regex from scratch.

« Back to Software & Programming