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

Survey Results

Do you use regular expressions in your apps?

Survey period: 11 Jan 2021 to 18 Jan 2021

A massive time saving shortcut that provides code efficiency, or an efficient way to introduce errors. A tool is only as good as the hands that wield it.

OptionVotes% 
Yes, often475.69
Yes, when appropriate40849.39
Yes, when I'm being lazy or it's just easier414.96
Yes, if there's no other option16219.61
No, never.10913.20
I have not, but maybe I will. Maybe...597.14



 
GeneralParser Generation Pin
Alois Kraus16-Jan-21 9:32
Alois Kraus16-Jan-21 9:32 
GeneralTried to, but the project guru told me to remove it Pin
trønderen15-Jan-21 2:26
trønderen15-Jan-21 2:26 
GeneralA little self-promotion of my RegexTester Pin
PIEBALDconsult13-Jan-21 2:59
mvePIEBALDconsult13-Jan-21 2:59 
GeneralRe: A little self-promotion of my RegexTester Pin
peterkmx14-Jan-21 3:56
professionalpeterkmx14-Jan-21 3:56 
GeneralRe: A little self-promotion of my RegexTester Pin
Patrice T17-Jan-21 16:38
mvePatrice T17-Jan-21 16:38 
GeneralWhen appropriate... Pin
Mike Hankey12-Jan-21 6:20
mveMike Hankey12-Jan-21 6:20 
GeneralHaven't gotten that far ... Pin
RedDk12-Jan-21 6:20
RedDk12-Jan-21 6:20 
GeneralWhen appropriate Pin
Peter_in_278012-Jan-21 0:35
professionalPeter_in_278012-Jan-21 0:35 
GeneralRe: When appropriate Pin
BryanFazekas12-Jan-21 2:37
BryanFazekas12-Jan-21 2:37 
GeneralRe: When appropriate Pin
Rusty Bullet12-Jan-21 3:25
Rusty Bullet12-Jan-21 3:25 
GeneralNot much Pin
Nelek11-Jan-21 21:50
protectorNelek11-Jan-21 21:50 
GeneralIf it's readable... Pin
Afzaal Ahmad Zeeshan11-Jan-21 0:15
professionalAfzaal Ahmad Zeeshan11-Jan-21 0:15 
GeneralRe: If it's readable... Pin
trønderen12-Jan-21 15:18
trønderen12-Jan-21 15:18 
GeneralNot so far Pin
den2k8810-Jan-21 23:01
professionalden2k8810-Jan-21 23:01 
GeneralRe: Not so far Pin
honey the codewitch12-Jan-21 22:23
mvahoney the codewitch12-Jan-21 22:23 
GeneralRe: Not so far Pin
den2k8813-Jan-21 3:43
professionalden2k8813-Jan-21 3:43 
GeneralRe: Not so far Pin
honey the codewitch13-Jan-21 3:48
mvahoney the codewitch13-Jan-21 3:48 
GeneralRe: Not so far Pin
Nelek13-Jan-21 7:44
protectorNelek13-Jan-21 7:44 
GeneralWhen appropriate PinPopular
OriginalGriff10-Jan-21 22:40
mveOriginalGriff10-Jan-21 22:40 
Regular expressions are a tool, and a powerful one.
But like all tools, they need to be used in the right place, and the right way or they cause more problems than they solve.

A hammer is a powerful tool - but for some jobs a screwdriver is better. And instead of screwdriver, a spanner undoes bolts better. And the right size spanner won't round off the bolt so you can't use it again.

That's a Regex. It's a hammer / screwdriver / spanner thing that does what it is designed for extremely well: processing text strings to extract patterns. Misuse it to try and get it to count things, or order months, or - gawd forbid - process HTML and it will bite you very hard indeed.

The syntax is arcane, they are pretty slow to execute1, and the match strings can be hard to understand. But in the right place, at the right time? they can save you hours of work! Get a helper app and it can make them a load easier to work with2.


1 Counting Lines in a String[^] shows the difference.
2 I use Expresso[^] - it's free, and it examines and generates Regular expressions.

"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: When appropriate Pin
Erik Burd11-Jan-21 8:14
professionalErik Burd11-Jan-21 8:14 
GeneralRe: When appropriate Pin
Member 1330167911-Jan-21 20:18
Member 1330167911-Jan-21 20:18 
GeneralRe: When appropriate Pin
OriginalGriff11-Jan-21 20:46
mveOriginalGriff11-Jan-21 20:46 
GeneralYes, when appropriate Pin
Slacker00710-Jan-21 21:38
professionalSlacker00710-Jan-21 21:38 

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.