$parts = preg_split('/\s+/', $str);
More Related Contents:
- PHP string explode with regular expression? [closed]
- regular expression [closed]
- Regex to validate range of numbers from 50 to 1000 with step of 50 [closed]
- How do I find all YouTube video ids in a string using a regex?
- php Replacing multiple spaces with a single space [duplicate]
- How to mimic Stack Overflow Auto-Link Behavior
- How to make dot match newline characters using regular expressions
- Remove control characters from PHP string
- How do I make this preg_match case insensitive?
- Matching a space in regex
- Regex for names
- Strip all HTML tags, except allowed
- Parse a CSS file with PHP
- How to split a long string without breaking words?
- How to capitalize first letter of first word in a sentence?
- How do I extract query parameters from a URL string in PHP?
- Regex to detect invalid UTF-8 string
- Remove domain extension
- Split string into sentences using regex
- How to search in an array with preg_match?
- Regex & PHP – isolate src attribute from img tag
- Regex for checking if a string has mismatched parentheses?
- php regex word boundary matching in utf-8
- Replace tabs and spaces with a single space as well as carriage returns and newlines with a single newline
- How to validate a domain name using Regex & PHP?
- PHP regex for validating a URL
- Youtube I.D parsing for new URL formats
- Regular expression: find range except for one letter or a range
- How to get the shortest rather than longest possible regex match with preg_match()
- PHP’s preg_replace regex that matches multiple lines