Web wikilinks

Published on Tue Mar 01 2022

[[plain wikilinks]] <e>[[</e>first tag]] <e dsss>[[</e>meta on first tag]] <e dsss>[[</e><div>first tag + meta + container</div>]] <e dsss>[[</e><div>first tag + meta + container + third tag</div><div>]]</div> <e dsss>[[</e>forgot a bracket <e dsss>[[</e>bracket containers<e>]]</e> all is well

Additional matching regexes for
Web wikilinks

Web wikilinks

[[plain wikilinks]] <e>[[</e>first tag]] <e dsss>[[</e>meta on first tag]] <e dsss>[[</e><div>first tag + meta + container</div>]] <e dsss>[[</e><div>first tag + meta + container + third tag</div><div>]]</div> <e dsss>[[</e>forgot a bracket <e dsss>[[</e>bracket containers<e>]]</e> all is well

Regex to detect HAML attribute expression whilst ignoring following text.

Can handle complex bracket expressions.

Maritime Container Number Pattern

Pattern for container numbers. Without the digit verification of course.

match arguments similar to shell, supports quoted string

first group matches quoted strings second group plain text, arguments are separated with a space. example: "this is a \"string\"" thisisnot "another \"string\" with a backslash \"\\"" just replace \" with " after matching.

Strip Email ID from Name

Use this regex to select all characters up to the "<" bracket. Then, reverse the direction of the bracket to select the closing ">" bracket. It works across multiple lines. You can get an email list with only the IDs. This is the pattern it matches: Alpha Person <[email protected]> Step 1 (.*) [$<$] gives you [email protected]> Step 2 [$.$] (.*) gives you [email protected]

URL-Matcher

a simple url regex which prevents matching of a trailing "&gt;" (the html representation of a closeing angle bracket ">")

find single character

Why this regEx not find all single character? Why not work Start of string and End of string in bracket?

ParsingAmazonInvoice

Goes through a Plain text derived from a PDF capturing the order number, the items, the order and ship dated and the costs.

Replace second (or further) html statement in a whole code

This regex replace the second tag content which has the prefix ":". If you want to replace the third, just increase the statement {1} to {2}, and so go on.

Match <?xml...?>

How to match the first line of a xml document