To regexp two number separated by \

Hi All,

I want to extract the numbers which are separated by "/". For example if I have expression like :
Score = 13/11

I want to extract 13 & 11.

Can someone please help with regexp string.

Really appreciate your help

Thanks
Ratnesh

 
\([0-9][\{1,9\}\)\/\([0-9][\{1,9\}\)

Based on your sample data, here is one solution:

sed -e 's#.* \(.*\)/\(.*\)#\1 \2#' input_file

[My bad for putting wrong output :(]
Hi DGPickett

It ain't working :

expect1.3> regexp {\([0-9][\{1,9\}\)[/]\([0-9][\{1,9\}\)} $a match1 match2
couldn't compile regular expression pattern: brackets [] not balanced
while executing

Score="13/11"echo "$Score" | cut -d"/" -f1echo "$Score" | cut -d"/" -f2

Works in sed -- regex is a layered thing, need to turn on extended regex.