# Using regex and \<r:find url

**URL:** <https://www.ruby-forum.com/t/using-regex-and-r-find-url/121443>\
**Category:** Radiant CMS\
**Created:** [November 28, 2007, 12:44am UTC](https://www.ruby-forum.com/t/using-regex-and-r-find-url/121443 "2007-11-28T00:44:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![travisbell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@travisbell](https://www.ruby-forum.com/u/travisbell)\
**Post date:** [November 28, 2007, 12:44am UTC](https://www.ruby-forum.com/t/using-regex-and-r-find-url/121443/1 "2007-11-28T00:44:56Z")

</div>

Hey guys,

It doesn’t seem possible to use regex with the \<r:find url=""\> tag.

What I am trying to do is recursively find the children of a child.  
Ie…

/projects  
/current  
– /project-4  
– /project-3

```
 /past
 -- /project-2
 -- /project-1

```

So, in my example, return…

- project 4
- project 3
- project 2
- project 1

Does what I am trying to do make sense? Is there any way I can do  
what I want to do dynamically with some tags?

Cheers,

–  
Travis B.  
Not sent from my iPhone.

---

<div class="post-metadata">

**Author:** ![travisbell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@travisbell](https://www.ruby-forum.com/u/travisbell)\
**Post date:** [November 28, 2007, 4:14am UTC](https://www.ruby-forum.com/t/using-regex-and-r-find-url/121443/2 "2007-11-28T04:14:21Z")

</div>

> It doesn’t seem possible to use regex with the \<r:find url=""\> tag.

Using regex isn’t a good fit with the database model - the url is a  
calculated field - doing lookups on it is expensive.

> What I am trying to do is recursively find the children of a child.  
> Ie…

Have a look at the aggregation extension - it doesn’t do it recursively,  
but it groups together the children of different urls.

I don’t think there’s anything for doing full recursion of a page’s  
children currently - you’ll need to write an extension yourself for  
that.

Dan.
