▲ 25 ▼ last time when did you use Regular Expressions? (lemmy.ca) submitted 2 years ago by kionite231@lemmy.ca to c/programming@programming.dev 31 comments fedilink hide all child comments
[–] towerful@programming.dev 4 points 2 years ago (1 child) Interesting to see a lot of these responses (so far) are workflow related instead of being used in production. permalink fedilink source hideshow 2 child comments replies: [–] sukhmel@programming.dev 2 points 2 years ago Probably, because in production there are really few things that are best done with regex. Most use I had for regex in production is filling in data from user-provided files with specifically crafted names, and even there there was some guesswork because of errors in naming, and the same thing may have been achieved without regex by splitting and/or iterating permalink fedilink source parent
[–] sukhmel@programming.dev 2 points 2 years ago Probably, because in production there are really few things that are best done with regex. Most use I had for regex in production is filling in data from user-provided files with specifically crafted names, and even there there was some guesswork because of errors in naming, and the same thing may have been achieved without regex by splitting and/or iterating permalink fedilink source parent