About 1,310,000 results
Open links in new tab
  1. JavaScript String search() Method - W3Schools

    The search() method returns the index (position) of the first match. The search() method returns -1 if no match is found. The search() method is case sensitive.

  2. String.prototype.search() - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The search() method of String values executes a search for a match between a regular expression and this string, returning the index of the first match in the string.

  3. Create a Search box to find text on page - Stack Overflow

    Sep 20, 2012 · I'm trying to create a search box using only html, css and javascript that will search my page for text, if matching text is found, the function should highlight the text inside of a …

  4. JavaScript String Search Methods - GeeksforGeeks

    Jun 17, 2024 · A string is a sequence of characters used to represent text or data, strings can be enclosed within single or double quotes. Here we are using some common approaches to …

  5. JavaScript String search() Method - JavaScript Tutorial

    Introduction to the JavaScript String search() function. The search() method matches a string with a regular expression and returns the index of the first match in the string: let index = …

  6. Javascript String search() (With Examples) - Programiz

    The search() method searches for a match between a given string and a regular expression. Example let sentence= "I love JavaScript."; // pattern that searches the first occurence of an …

  7. How to create JavaScript list filter and search? - CodeBrainer

    Jul 6, 2024 · Creating a JavaScript list filter and searching for records is one of the fundamental skills for web developers. Filtering means that we make a list of records shorter, more adjusted …

  8. JavaScript String search() Method - Online Tutorials Library

    JavaScript String Search Methods - Learn about various string search methods in JavaScript including indexOf, lastIndexOf, and more. Enhance your coding skills with practical examples.

  9. JavaScript String Search Methods with Examples

    Apr 22, 2025 · When you need to deal with text in code, JavaScript comes with a bunch of helpful methods for searching strings. You might search for a specific word, figure out where in a …

  10. JavaScript search | Examples of JavaScript search - EDUCBA

    Apr 10, 2023 · JavaScript search method executes or performs a search for a match between the string Object and the Regular Expression. search () method searches string of a specific …

  11. Some results have been removed
Refresh