I have a String `STRING` of this form:

```
[CDATA[A title for the URLs with a date 2013.12.10 in it<br /><br />

    http://www.foobar.com/foo/bar
    <br />http://bar.com/foo
    <br />http://myurl.com/foo
    <br />http://desiredURL.com/files/ddd
    <br />http://asdasd.com/onefile/g.html
    <br />http://second.com/link
    <br />]]

```

Theres a date in the first line that I need to compare to today's date and if that is `true` I want to get the URL of a specific domain from one of the succeeding lines.
I have done some parsing on the date line:

```
DATE=`date +%Y.%m.%d`
LINEDATE=`echo "$line" | grep  $DATE |   sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p'`

```

So what I need is a regular expression that finds in between `[CDATA` and `]]` said Datepattern and if this is todays date, gets the URL of domain `desiredURL.com`. Maybe something like this:

```
URL = `echo $STRING | sed 'Pattern'`

```

Where URL is empty if the string didnt contain todays date or did not contain a url of that domain (or both).