Skip to content

Instantly share code, notes, and snippets.

@Ionsolo
Created September 16, 2023 17:16
Show Gist options
  • Save Ionsolo/5e38ce093739e6e3a77e23e176461579 to your computer and use it in GitHub Desktop.
Save Ionsolo/5e38ce093739e6e3a77e23e176461579 to your computer and use it in GitHub Desktop.
# perl code
while ($url =~ /=(.+?)(?:&|$)/g) {
push @parametros, $1;
}
# What does that regexp: parsing an capture every char after the "=" until a new line or '&' chars are encountered, match all coincidences
# what code does: using a while loop that triggers every time that the regexp finds something new in the url, so if there three matches means three times executing the inside loop code. What the wants to replicate in raku is that, using a loop construct to do things while the search is on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment