html - Huge spaces instead of regular spaces are pasted -


given string out of copy excel row.

i need user able copy/paste row excel form. given string passed explode() in php have access different cell values.

problem : when paste given line input field, values separated "huge" spaces (so php cannot explode regular spaces). odd : when paste line actual stackoverflow textarea or url bar, regular spaces pasted.

since stackoverflow textarea shows regular spaces when paste, please see below link screencast showing issue.

video : http://recordit.co/ndrnspeo4i *.gif : http://g.recordit.co/ndrnspeo4i.gif

accessing data $values[i], pattern work:

$stringprocessed = preg_replace('/\s+/', ' ',$string); $values = explode(" ", $stringprocessed); 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -