Changeset 6057 for trunk/expressoMail1_2/spell_checker/spell_checker.php
- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/spell_checker/spell_checker.php
r3400 r6057 197 197 198 198 //splits the string on any html tags, preserving the tags and putting them in the $words array 199 $words = preg_split( "/(<[^<>]*>)/", $string, -1, PREG_SPLIT_DELIM_CAPTURE);199 $words = preg_split('/(<[^<>]*>)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE); 200 200 201 201 $numResults = count($words); //the number of elements in the array. … … 215 215 if(($i & 1) == 0) // Even-numbered entries are word sets. 216 216 { 217 $words[$i] = preg_split( "/(\s+|\ )/", $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces217 $words[$i] = preg_split('/(\s+|\ )/', $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 218 218 219 219 // Now go through each word and link up the misspelled ones.
Note: See TracChangeset
for help on using the changeset viewer.