substituce retezcu

Honza Pazdziora adelton na fi.muni.cz
Čtvrtek Říjen 21 11:17:18 MEST 1999


On Thu, 21 Oct 1999 09:14:02 GMT, Radek Hnilica <radek_hnilica na linuxfan.com> wrote:
> 	Dobry den,
> 
> mam takovy problem v awk
> potrebuji retezec "<TT/some text/" nahradit
> retezcem "<TT>some text</TT>".  Neustale nemohu prijit jak

	perl -pe 's!<TT/(.*?)/!<TT>$1</TT>!g'

Netestovano.

-- 
------------------------------------------------------------------------
 Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
 .project: Perl, DBI, Oracle, MySQL, auth. WWW servers, MTB, Spain, ...
------------------------------------------------------------------------


Další informace o konferenci Perl