P
Pokkai Dokkai
string="something <a a> somethig <a a> something"
now i want to change /<a.*a>/ to "tag"
i want result like this
string="something tag somethig tag something"
but when i try
string =~ /<a.*a>/ # here $& --->"<a a> somethig <a a>"
$`+'tag'+$' # 'something tag something'
how can i change each tag ?
any idea ?
now i want to change /<a.*a>/ to "tag"
i want result like this
string="something tag somethig tag something"
but when i try
string =~ /<a.*a>/ # here $& --->"<a a> somethig <a a>"
$`+'tag'+$' # 'something tag something'
how can i change each tag ?
any idea ?