Need help with bash + regex
Hi, im trying to extract some text from a string via regex, the string is like this:
bla bla<abc><def><ghi>...
i only require everything before the first <, and there may be an infinite number of <text> after the string i require.
ive tried using
string=`expr match "$string" '\(.*\)<'`
however ive had no luck
any help would be greatly appreciated.
|