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
.name
is 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