how do i compile a list of strings into a compact regular expression? – PHP
i'll start with an example because i'm not sure i can explain this properly. the easier part of the problem (i think although i can't get it either): take some strings eg. 'Example', 'DOMNode', 'DOMText', 'DOMElement' and output '(Example|DOM(Node|Text|Element))' a…