Thanks AnomalousMonk. The second code has worked exactly as I want. Thank you very much.
In reply to Re^2: Regex help \b & \Q by Anonymous Monk in thread Regex help \b & \Q by Anonymous Monk