I need pattern to preg match in those (similar) rows: $150Furnished rooms near shops & transportation - $240 ATTENTION AIRLINE CREW - Crashpads for lease, 2 bath, gym, patio - $160 Great rooms near transportation - $125 COME AND ENJOY OUR FABULOUS ROOMS THAT WE HAVE FOR RENT!! (LOCATED ALL - $500 Room on ave u - $275Lovely rooms available NOW near transit - $600 Two Rooms for Rent - $900 Furnished room - $300 FURNISHED ROOM- $650 Large Room Available Sept. Hardwood Floors Furnished Everything Includ -
preg_match_all('#(\$\d+)\s*#U', $string, $matches) print_r($matches); PHP: did a quick test in a regex tool and it seemed to work.