String search in log file

hi, i have a requirement to search for a sting "/user/data/<7digit>/<temp dir>/<file name>#<unique string> in a log file. This string present number of times but i need to get the first occurence only. i am trying with the below option but not working can you please help.

grep "/user/data/{'/[[:digit:]]{7}/[[:alnum:]]{1,255}'}#$<file name>#<unique string> trace.log >> /tmp/outputfile

thanks
satya

Try

egrep -m1 '/user/data/[0-9]{7}/'