

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
With JavaScript Regular Expression find a non-whitespace character.
To find a non-whitespace character, use the following −
\S
Example
You can try to run the following code to find non-whitespace character −
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "100% Responsive!"; var reg = /\S/g; var match = myStr.match(reg); document.write(match); </script> </body> </html>
- Related Questions & Answers
- Find the non-digit character with JavaScript Regular Expression.
- How to match a whitespace in python using Regular Expression?
- Find non-word character in a string with JavaScript RegExp.
- How to match any non-digit character in Python using Regular Expression?
- Explain JavaScript Regular Expression modifiers with examples
- Java Regular Expression and negating a whole character group.
- Regular Expression Matching in JavaScript
- How to match a single character in python using Regular Expression?
- How to match a nonwhitespace character in python using Regular Expression?
- What are character classes or character sets used in Python regular expression?
- How to match non-digits using Java Regular Expression (RegEx)
- How to define a Regular Expression in JavaScript?
- C# Program to check if a character is a whitespace character
- Regular Expression in C# with Examples
- Regular Expression in Python with Examples?
Advertisements