Try this
$string = '"A" 100000 "M" "C" "J" "JOHNSON TRENCHING" 238910';
$string = preg_match_all('/(\"[a-zA-Z0-9\s]+\")|[0-9]+/', $string, $matches);
print_r($matches);
More Related Contents:
- Explode string by one or more spaces or tabs
- Get PHP to stop replacing ‘.’ characters in $_GET or $_POST arrays?
- remove script tag from HTML content
- Capturing text between square brackets in PHP
- PHP explode the string, but treat words in quotes as a single word
- get everything between and with php [duplicate]
- How do I remove all specific characters at the end of a string in PHP?
- How exactly do Regular Expression word boundaries work in PHP?
- How can I use .htaccess to hide .php URL extensions?
- PHP – regex to allow letters and numbers only
- preg_match() Unknown modifier ‘[‘ help
- Can someone explain the /e regex modifier? [duplicate]
- How do I replace double quotes with single quotes
- How to “Validate” Human Names in CakePHP?
- In PHP, how do I extract multiple e-mail addresses from a block of text and put them into an array?
- How to remove diacritics from text?
- PHP regular expression to match lines starting with a special character
- Using regex to filter attributes in xpath with php
- Get last whole number in a string
- RegExp in preg_match function returning browser error
- Regex for password PHP [duplicate]
- regular expression and forward slash
- Explode a paragraph into sentences in PHP
- Youtube I.D parsing for new URL formats
- PHP and regexp to accept only Greek characters in form
- How to validate that a string only contain lowercase letters?
- 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()
- Regex to match an IP address [closed]
- PHP’s preg_replace regex that matches multiple lines