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 trialkaran Badhwar
Web Development Techdegree Graduate 18,135 Points* V/s +
If I put
[^@.]* vs [^@.]+
Why the result is different?
I request can somebody please help this topic took more than 7 hours of my day I am re-watching video trying to to find something but cannot understand. How * and + works, How they are concatenating the strings after @ and before @
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsLooking at the base [^@.]
means
-
[
start of group -
^
negate listing -
@
the character -
.
the character (not the wildcard character) -
]
end of group
So, looking for any single character that is not an @ sign or a period .
Now adding the final + means one or more characters that meets the previous description.
Now adding the final * means zero or more characters that meets the previous description.
Post back if you need more help. Good luck!!!
karan Badhwar
Web Development Techdegree Graduate 18,135 Pointskaran Badhwar
Web Development Techdegree Graduate 18,135 PointsBut sir as mentioned in the previous question I am unable to understand how + and * works
https://teamtreehouse.com/community/help-understanding-it