View Single Post
  #2 (permalink)  
Old Apr 23rd, 2008, 08:35
spinal007's Avatar
spinal007 spinal007 is offline
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: regexp find and seperate custom tags in a string

. matches any character apart from new line and carriage return.
use this instead: [\s\S] - which means any whitespace and non-whitespace character (everything)

On a separate note, I know "g" is global and "i" is ignore case, but what's the "m" for? (in /mg at the end of the regexp)
Reply With Quote