/ Published in: Regular Expression
The expression inside the parenthesis indicates a positive lookbehind. It will match any occurance of the literal "class".
The two slash s's represent an occurance of spaces following class and then any non space characters. These capture the name of the class.
The two slash s's represent an occurance of spaces following class and then any non space characters. These capture the name of the class.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(?<=class\s)\s*\S*
URL: http://aspnet.4guysfromrolla.com/articles/022603-1.aspx