![]() |
#1 | ||
![]() ![]() ![]() Join Date: Sep 2004
Location: Dentergem, Belgium
Posts: 1,811
|
![]() I'm learning Regex now, and'm quite stumped. I'd ask the instructor, but he's said to be no good with them either yesterday. I've made a test-page to get the hang of it, but its output's not what it should do, according to how I read the code.
Code:
*$string = "Best niet [b] bevet Moddervet Niet vet"; *echo $string, "<br>"; *eregi("(\[b\])", $string, $resultaat); *$open_tags = count($resultaat); *eregi("(\[/b\])", $string, $resultaat_closed); *$closed_tags = count($resultaat_closed); *echo "Open: ", $open_tags, "<br>Closed: ", $closed_tags; Code:
Best niet [b] bevet Moddervet Niet vet Open: 2 Closed: 0 |
||
![]() ![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
regular | sgtboat | Blah, blah, blah... | 4 | 26-11-2008 03:30 AM |
When will regular updates start? | Doink | Blah, blah, blah... | 6 | 13-12-2007 10:00 AM |
|
|
||
  |