About 73 results
Open links in new tab
  1. What does the regex \S mean in JavaScript? - Stack Overflow

    What does the regex \S mean in JavaScript? [duplicate] Ask Question Asked 14 years, 5 months ago.

  2. Check whether a string matches a regex in JS - Stack Overflow

    Jan 9, 2023 · I want to use JavaScript (I can also use jQuery) to do check whether a string matches the regex ^([a-z0-9]{5,})$, and get a true or false result. match() seems to check …

  3. RegEx for Javascript to allow only alphanumeric - Stack Overflow

    Jun 29, 2015 · @Greg, I enjoy how you explain your regex-related answers. Regexes without explanations, in my opinion, are kind of useless. Because you get that one-time "yeah it …

  4. regex - Regular expression to get a string between two strings in ...

    Regular expression to get a string between two strings in JavaScript. The most complete solution that will work in the vast majority of cases is using a capturing group with a lazy dot matching …

  5. javascript - Regex to check whether a string contains only numbers ...

    hash = window.location.hash.substr(1); var reg = new RegExp('^[0-9]$'); console.log(reg.test(hash)); I get false on both "123" and "123f".

  6. regex - How do you access the matched groups in a JavaScript …

    Javascript regex, determining what group was matched on. 1. Get the matches from specific groups. 0. Get ...

  7. Return positions of a regex match () in Javascript?

    Feb 19, 2010 · From developer.mozilla.org docs on the String .match() method:. The returned Array has an extra input property, which contains the original string that was parsed.

  8. javascript - Regex for empty string or white space - Stack Overflow

    Javascript regex to detect emptiness or specific pattern. 2. Regex to match a pattern or empty value. 0 ...

  9. Javascript regex to match a string that ends with some characters …

    Oct 24, 2014 · I was reluctant to give the actual Javascript regex since I'm not familiar with the language (though I was confident that the assertions, if supported, would work -- according to …

  10. How to extract a string using JavaScript Regex?

    I'm trying to extract a substring from a file with JavaScript Regex. Here is a slice from the file : DATE:20091201T220000 SUMMARY:Dad's birthday the field I want to extract is "Summary". …

Refresh