# \[php\] REGEX

**URL:** <https://forum.kirupa.com/t/php-regex/200203>\
**Category:** programming\
**Created:** [September 10, 2006, 1:29am UTC](https://forum.kirupa.com/t/php-regex/200203 "2006-09-10T01:29:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sniper\_Jo](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Sniper\_Jo](https://forum.kirupa.com/u/Sniper_Jo)\
**Post date:** [September 10, 2006, 1:29am UTC](https://forum.kirupa.com/t/php-regex/200203/1 "2006-09-10T01:29:55Z")

</div>

Hi guys,

been having some problems working out how to find the 10:23 and 10:50 in a  
string like [COLOR=“SlateGray”]“lasdasdasdsads 10:23 asdasdasdasd 10:50”[/COLOR]

and extract them. I have been trying to use preg\_match\_all but i cant seem to get it to work, can anyone help ?

ps. My ereg statment that works is

```php
ereg ("([0-9]{2}):([0-59]{2})", $content, $regs)

```

Cheers if you can !
