Click here to Skip to main content
15,171,993 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.

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 10:32
MemberAlois Kraus16-Jan-21 10:32 
GeneralTried to, but the project guru told me to remove it Pin
trønderen15-Jan-21 3:26
Membertrønderen15-Jan-21 3:26 
GeneralA little self-promotion of my RegexTester Pin
PIEBALDconsult13-Jan-21 3:59
professionalPIEBALDconsult13-Jan-21 3:59 
GeneralRe: A little self-promotion of my RegexTester Pin
Peter ls-l14-Jan-21 4:56
MemberPeter ls-l14-Jan-21 4:56 
GeneralRe: A little self-promotion of my RegexTester Pin
Patrice T17-Jan-21 17:38
mvePatrice T17-Jan-21 17:38 
GeneralWhen appropriate... Pin
Mike Hankey12-Jan-21 7:20
professionalMike Hankey12-Jan-21 7:20 
GeneralHaven't gotten that far ... Pin
RedDk12-Jan-21 7:20
MemberRedDk12-Jan-21 7:20 
GeneralWhen appropriate Pin
Peter_in_278012-Jan-21 1:35
professionalPeter_in_278012-Jan-21 1:35 
GeneralRe: When appropriate Pin
BryanFazekas12-Jan-21 3:37
MemberBryanFazekas12-Jan-21 3:37 
GeneralRe: When appropriate Pin
Rusty Bullet12-Jan-21 4:25
MemberRusty Bullet12-Jan-21 4:25 
GeneralNot much Pin
Nelek11-Jan-21 22:50
protectorNelek11-Jan-21 22:50 
GeneralIf it's readable... Pin
Afzaal Ahmad Zeeshan11-Jan-21 1:15
mveAfzaal Ahmad Zeeshan11-Jan-21 1:15 
GeneralRe: If it's readable... Pin
trønderen12-Jan-21 16:18
Membertrønderen12-Jan-21 16:18 
GeneralNot so far Pin
den2k8811-Jan-21 0:01
professionalden2k8811-Jan-21 0:01 
GeneralRe: Not so far Pin
honey the codewitch12-Jan-21 23:23
mvahoney the codewitch12-Jan-21 23:23 
GeneralRe: Not so far Pin
den2k8813-Jan-21 4:43
professionalden2k8813-Jan-21 4:43 
GeneralRe: Not so far Pin
honey the codewitch13-Jan-21 4:48
mvahoney the codewitch13-Jan-21 4:48 
GeneralRe: Not so far Pin
Nelek13-Jan-21 8:44
protectorNelek13-Jan-21 8:44 
GeneralWhen appropriate Pin
OriginalGriff10-Jan-21 23:40
mveOriginalGriff10-Jan-21 23: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 9:14
professionalErik Burd11-Jan-21 9:14 
GeneralRe: When appropriate Pin
Member 1330167911-Jan-21 21:18
MemberMember 1330167911-Jan-21 21:18 
GeneralRe: When appropriate Pin
OriginalGriff11-Jan-21 21:46
mveOriginalGriff11-Jan-21 21:46 
GeneralYes, when appropriate Pin
Slacker00710-Jan-21 22:38
professionalSlacker00710-Jan-21 22: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.