search for word with a period in the beginning
-
I need to search for a CSS class.
To do that, you have to search with a.name, and when I do that, I get all the results, with none of them having a period in the beginning.Any idea what needs to be added to get this to work?
CSS Example.
.MyClass { text-align: left; }Try to search for
.MyClass, and it will ignore the PERIOD. -
If you are looking for the literal text then
.nameis correct, as long as the search mode is normal. However if you have your search mode as regular expression then this means any character followed byname.The period character is a meta character under regular expression search mode. To make it a literal character you need to escape it,
\..Terry
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login