#! perl -slw use strict; m[(<[^/>]+/>)] and print "'$1'" while ; __DATA__ #### C:\test>junk23 '' '' '' '' ''