String.trim()
Page 206.
After half an hour of head-scratching ... would I be right to suggest that reExtraSpace should be
/^\s*(.*?)\s*$/
?
Otherwise trim() only works if there is space at BOTH ends of the string.
(I also sent this as an erratum to Wiley before spotting this forum).
PS: Is there a way to search this specific forum?<center></center><center></center><center></center><center></center><center></center><center></center>
|