Grep with regulare expression to find carrige return

Gurus,

I have a files from where lines are like following

<ns0:ccid>123456789</ns0:ccid>

<ns0:ccid>1234
56789</ns0:ccid>

I would like to grep any number which will be as below (with carrige return): As 123456789 any number so I have to use the regular expression

<ns0:ccid>1234
56789</ns0:ccid>

perl -ln0e '$,="\n";print /^.*\d+\n\d+.*$/gm' file

But that would match any

<tag>1234
567890</tag>

You could be more specific:

perl -ln0e '$,="\n"; print /^<ns0:ccid>\d+\n\d+<\/ns0:ccid>$/gm' file

to match only <ns0:ccid> tags

I need to add the following string <ns0:ccid> . It will be like "<ns0:ccid>***\n</ns0:ccid>" Here \n --> carrige return. *** --> any number