Click here to Skip to main content
15,892,298 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 
also known as non-backtracking regular expressions.

There are these core operators

() - subexpression (abc) matches "abc"
? - match zero or one occurance abc? matches "ab" or "abc". (abc)? matches "abc" or ""
| - alternation abc|def matches "abc" or "def"
* - kleene star - matches zero or more occurances abc* matches "ab" or "abc" or "abcccccc" etc. (abc)* matches "" or "abcabcabcabc" etc

The rest is syntactic sugar:
[] - charset [abc] (equiv [a-c] is shorthand for a|b|c
[^] - not charset. [^a-c] matches anything but a b or c. The longhand is too long to write out here but is like d|e|f|g... plus all the symbols and control chars
+ - match one or more (abc)+ is equiv to (abc)(abc)*
. - match any single character. the longhand for . is a|b|c|d|e|... etc

also \ is the escape. it matches the literal character that comes next no matter what it is.

That's all you really need to know.
Real programmers use butterflies

GeneralRe: Not so far Pin
Nelek13-Jan-21 7:44
protectorNelek13-Jan-21 7:44 
GeneralWhen appropriate Pin
OriginalGriff10-Jan-21 22:40
mveOriginalGriff10-Jan-21 22:40 
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.