in reply to regec to select text ather than remove HTML tags

Untested:
!/<hello>/ and /(hello)/ and print $1

Replies are listed 'Best First'.
Re^2: regec to select text ather than remove HTML tags
by Veer (Initiate) on Jan 24, 2012 at 07:16 UTC
    I need a plain regex expression which can be used as a condition what I have come up with is : \bhello\b(?! ^\\w:-]*?>) please help