CodingRegular expressions

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Rowan  
 To:  Ally      
30594.10 In reply to 30594.9 
Nope.
quote: php.net
If matches is provided, then it is filled with the results of search. $matches[0] will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized subpattern, and so on.


Unless you wanted all the matches, sorry. In which case, you'd be best off using preg_match_all().

Edit: Good Lord, this post has been a bit of a massacre.

www.oforpertainingto.me.uk

0/0
 Reply   Quote More 

 From:  Ally   
 To:  Rowan     
30594.11 In reply to 30594.10 
Aharrr. So I was just being an idiot. Thankee very much.
0/0
 Reply   Quote More 

Reply to All    
 

1–11

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats