Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAnton Bozhinov
12,381 PointsCan someone explain ?
I ran into this piece of code
var rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
What is that ?
3 Answers
William Titterton
10,960 PointsYou should be able to find information on Google. just search 'regular expressions'. I wouldn't worry too much about writing your own, as you can find many examples on the net that will be suitable for most scenarios. hope that helps.
William Titterton
10,960 Pointsit looks like a regular expression. used in the validation of emails and such forth.
Anton Bozhinov
12,381 PointsHi William, thanks for the reply! Do you know where I can get more info about it ?
Rich Donnellan
Treehouse Moderator 27,696 PointsAnton,
Check out the new workshop on Regular Expressions. It's geared toward the Java track/language, but the concept is the same for all languages.
ā Rich