These are the formal rules for forming basic UNIX regular expressions. For some simple examples, skip to Simple Examples. The rules come from the Solaris 7 regexp(5) manual page. The I2A2 reflector ...
Similar rules apply to integration whereby we need to remove the brackets first as the expression has to be sums and/or differences of terms of the form \(a{x^n}\).