Install libregexp-assemble-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libregexp-assemble-perl
Perl module to merge several regular expressions
Regexp::Assemble takes an arbitrary number of regular expressions and assembles them into a single regular expression (or RE) that matches all that the individual REs match. . It is also possible to track the original patterns, so that you can determine which, among the source patterns that form the assembled pattern, was the one that caused the match to occur.