epidiah ,
@epidiah@dice.camp avatar

[Thread, post or comment was deleted by the author]

  • Loading...
  • hummingrain ,
    @hummingrain@wandering.shop avatar

    @epidiah I mean, I initially read "with regret" instead of "with regex," which feels like it might fall under your requirements

    Rianq ,
    @Rianq@pnpde.social avatar

    @epidiah Good look with your incantations

    epidiah OP ,
    @epidiah@dice.camp avatar

    [Thread, post or comment was deleted by the author]

  • Loading...
  • epidiah OP ,
    @epidiah@dice.camp avatar

    [Thread, post or comment was deleted by the author]

  • Loading...
  • Printdevil ,
    @Printdevil@dice.camp avatar

    @epidiah But when Bertrude retires they're moving you to "Donkey as a service" mail.

    epidiah OP ,
    @epidiah@dice.camp avatar

    [Thread, post or comment was deleted by the author]

  • Loading...
  • eddyfate ,
    @eddyfate@mastodonapp.uk avatar

    @epidiah You've been manipulated by Big Regex, obviously.

    glenatron ,
    @glenatron@dice.camp avatar

    @epidiah If the problem is "how to I find something specific in/from a string" then regex might be the solution, otherwise it's definitely not. More complicated than that and there's a good chance that there's an existing library around that will do what you want more easily anyways.

    complexmath ,
    @complexmath@hachyderm.io avatar

    @epidiah I think regex is often a convenient solution, just not often a good one. If you’re looking for more nerdery to get into and haven’t done so yet, I’d suggest learning a bit about compiler design. I’ve found myself writing parsers for all sorts of things over the years, and the traditional recursive descent approach is pretty easy to crank out from scratch, particularly if you have a grammar handy.

    friendlyghost ,
    @friendlyghost@dice.camp avatar

    @epidiah if the answer isn't regex it's probably awk.

    stoppableforce ,
    @stoppableforce@awaymessage.club avatar

    @epidiah There’s a very relevant quote by Jamie Zawinski that goes:

    Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems.

    This has never failed to steer me correctly when it comes to regex.

    smadin ,
    @smadin@better.boston avatar

    @epidiah nah, that's JWZ's job

    benkramer , (edited )
    @benkramer@dice.camp avatar

    @epidiah You have 3 now.
    1: The original problem
    2: Figuring out the regex
    3: Later, realizing your regex was not specific enough, and need to figure out what else it affected.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines