The following should suffice:
[^ ]
If you want to expand that to anything but white-space (line breaks, tabs, spaces, hard spaces):
[^\s]
or
\S # Note this is a CAPITAL 'S'!
More Related Contents:
- Regular expression [ 1 ( 0 1* 0)* 1 ]* DFA
- Learning Regular Expressions [closed]
- How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops
- Regular expression for floating point numbers
- RegEx for matching UK Postcodes
- Regex to pick characters outside of pair of quotes
- Can’t escape the backslash with regex?
- Regex to match URL
- Regex (grep) for multi-line search needed [duplicate]
- Match whitespace but not newlines
- Extracting a string between other two strings in R
- Regular expression for matching HH:MM time format
- How do I grep for all non-ASCII characters?
- How do I use regular expressions in bash scripts?
- Random string that matches a regexp [duplicate]
- Insert commas into number string
- Insert contents of a file after specific pattern match
- Regular expression for validating names and surnames?
- Regular Expression: Numeric range [duplicate]
- Regex: match pattern as long as it’s not in the beginning
- HTML5 Form Input Pattern Currency Format
- How can I make my match non greedy in vim?
- How to pattern match using regular expression in Scala?
- Javascript regex to validate IPv4 and IPv6 address, no hostnames
- Search and replace in bash using regular expressions
- What’s wrong with my lookahead regex in GNU sed?
- Regex capitalize first letter every word, also after a special character like a dash
- Sed to extract text between two strings
- Swift 3 – How do I extract captured groups in regular expressions?
- Find all string matches with Regex golang