Community
    • Login

    search for word with a period in the beginning

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 66 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Wayne BarronW
      Wayne Barron
      last edited by

      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.

      Terry RT 1 Reply Last reply Reply Quote 0
      • Terry RT
        Terry R @Wayne Barron
        last edited by

        @Wayne-Barron

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

        The period character is a meta character under regular expression search mode. To make it a literal character you need to escape it, \..

        Terry

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors