BS-6595
Use text replacement for Pattern expressions