T
Troll
Hi,
I'd like to change 'Jones & Bros.' to 'Jones and Company' when it appears as
part of a h1 heading in a HTML doc. I have tried the following with no luck:
s/<h1>.*Jones & Bros..*</h1>/<h1>.*Jones and Company.*</h1>/
s/<h1>[\\s|S]*Jones & Bros.[\\s|S]*</h1>/<h1>[\\s|S]*Jones and
Company[\\s|S]*</h1>/
Where am I going wrong? We cannot assume that Jones & Bros. is alone in the
heading. There may be other characters/words including spaces around it.
I'd like to change 'Jones & Bros.' to 'Jones and Company' when it appears as
part of a h1 heading in a HTML doc. I have tried the following with no luck:
s/<h1>.*Jones & Bros..*</h1>/<h1>.*Jones and Company.*</h1>/
s/<h1>[\\s|S]*Jones & Bros.[\\s|S]*</h1>/<h1>[\\s|S]*Jones and
Company[\\s|S]*</h1>/
Where am I going wrong? We cannot assume that Jones & Bros. is alone in the
heading. There may be other characters/words including spaces around it.