View Single Post
  #6 (permalink)  
Old 07-14-09, 04:41 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 704
Thanks: 0
Thanked 0 Times in 0 Posts
What stands a '~' for in a regular expression?.

'\s*' means a possible space right?.
and []? a possible space?.

Is there a site where to find a list of options to use i a regular expression?.

PHP Code:

$pattern2 "~(<div\s*.?>)~"// seems to me to search for a div opening en div closing tag
$pattern3 "~(<span\s*.?>)~"// seems to me to search for a span opening en span closing tag 

_j

Last edited by jonnekke; 07-14-09 at 04:44 AM.
Reply With Quote