Skip to content
No results
  • About Us
  • Contact
  • Privacy Policy
  • Regular Expression Cheatsheet
  • Sample Page
  • Submit Regular Expression
Regex Pattern
  • Home
  • Dates & Times
  • URI
  • Strings
  • Numbers
  • Markup & Programming
Regex Pattern
Home Strings Regex To Match Any Word In A String Excluding Spaces

Regex To Match Any Word In A String Excluding Spaces

A regular expression to match any word in a string until meeting spaces.

/([^\s]+)/

Matches:

  • This Is Word

Non-matches:

  • Any spaces found in a string

See Also:

  • Regex Match All Characters Except Space (Unless In Quotes)
  • Regular Expression To Match Whitespace
  • Regex To Match Spaces And Empty Lines That Aren’t In Quotes
# Whitespace
Previous Post Regular Expression To Match Camel Case Text
Next Post JavaScript/PHP/Java/Kotlin/Go/C/Swift/C# Comment Regular Expression

More Like This:

Regex To Match Whitespaces Between Words

Regex To Match Everything Except Letters And Spaces

Regex To Remove Unnecessary Spaces In A String

No results

Latest Regex

  • Regex To Match Whitespaces Between Words
  • Regex To Match Chinese/Japanese/Korean Characters
  • Regex To Match Content Between HTML Tags
  • US EIN (Employer Identification Number) Regular Expression
  • Regex To Match Numbers Containing Only Digits, Commas, and Dots

Popular Tags

Amazon Audio AWS Bible BitTorrent Credit Card Digit Email File Google Hash Image IP Address Linux Markdown Postal Code stock Underscore URK URL Vehicle Registration Number Video Whitespace Windows Youtube zip code

Trending now

BitTorrent Magnet Link Regular Expressioned2k Link Regular ExpressionXunlei (Thunder) Link Regular ExpressionUUID & GUID Regular Expression

Copyright © 2026 - Regexpattern.com

  • About Us
  • Contact
  • Privacy Policy
  • Cheatsheet
  • Submit