About 448,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. JavaScript String Search Methods - GeeksforGeeks

    Jun 17, 2024 · JavaScript Symbol search property determines the method that returns the index within a string that matches the regular expression. This function is called by the String …

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

    search() Syntax. The syntax of the search() method is: str.search(regexp) Here, str is a string.

  5. JavaScript: String search() method - TechOnTheNet

    Syntax. In JavaScript, the syntax for the search() method is: string.search(search_expression); Parameters or Arguments search_expression. It is either a string value or a RegExp object …

  6. JavaScript String search() Method - JavaScript Tutorial

    You'll learn how to use the JavaScript String search() function to search for a match with an regular expression with a string.

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

  8. search () JavaScript String Method – How to Search a String

    search () is sometimes written as String.prototype.search () because it is a method of the String object’s prototype property. search () accepts a regular expression argument. Here is the …

  9. JavaScript String Search Methods Explained with Examples

    Nov 27, 2024 · JavaScript String Search Methods - Learn how to search for text within strings using JavaScript. Explore indexOf, search and match methods with practical coding examples …

  10. JavaScript String Search() Method: A Comprehensive Guide with …

    Oct 27, 2024 · Learn how to use the JavaScript string search() method effectively to find substrings within strings using regular expressions and string literals. Explore detailed …

  11. Some results have been removed
Refresh