.*?;.*?
will cause catastrophic backtracking. See this post on more details on the problem: http://www.regular-expressions.info/catastrophic.html backtracking.
To resolve the performance issues, remove .*?;
and replace it with [^;]*;
, that should be much faster.