Test, validate and match regular expressions
This regex matches and captures parts of Bematech device URLs, validating a structure of an address, two Base64-encoded segments, and a language code ('por' or 'en'). It is useful for parsing or verifying connection endpoints in applications integrating with Bematech hardware, ensuring URLs conform to the expected format before use.