Community
    • Login

    search for word with a period in the beginning

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 649 Views 1 Watching
    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 Offline
      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 Offline
        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

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors