Solve RegularExpression.