View Single Post
Old 05-28-2009, 07:35 PM   #4 (permalink)
kmote
 

Join Date: Jul 2005

Location: England

Posts: 2,161

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: Regular expression help

Sure, the \w represents a character that is one of A-Za-z0-9_ the [] creates a character class out of that and space then the + makes it repeat one or more times. In short this makes it look for something that looks like this
style="one or more of the following characters: A-Z a-z 0-9 _"
This is a good site for it Regular-Expressions.info - Regex Tutorial, Examples and Reference - Regexp Patterns
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is online now