News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex (2010) by tyingq on Saturday September 25, 2021 @03:05PM (#28655402)
I assume they meant "some regex implementation, including replace and/or match groups".

Like, for just the params part (yes, broken and simplistic):

  #!/usr/bin/perl
  $_="a=b&c=d&e=f&whatever=some thing";
  while (s/^([^&]*)=([^&]*)(&|$)//) {
    print "[$1] [$2]\n";
  }

There are no comments on this comment yet.