Island parser
An “Island parser” is a parser that recognizes just a part of a language of interest, ignoring the “sea” around the isalnds. For example, an island parser might just recognize URL links within an HTML file and ignore all other constructs.
For details of how to build an island parser with PetitParser, see the online tutorial Scripting with bounded seas: Extracting Javascript.