This is a tool for composing regular expressions in PHP, Java, and Python: https://regex101.com/