May 3, 2003 #1 taubate Programmer Jun 29, 2001 141 US I know these functions are used to remove leading and trailing white space. But what is /^\s*/ and /\s*$/ ? Thanks.
I know these functions are used to remove leading and trailing white space. But what is /^\s*/ and /\s*$/ ? Thanks.
May 3, 2003 #2 xutopia Programmer Apr 4, 2002 2,001 CA regular expressions. Just google it to read more about them! Gary http://www.xutopia.com Haran ========================== Upvote 0 Downvote
regular expressions. Just google it to read more about them! Gary http://www.xutopia.com Haran ==========================
May 4, 2003 #3 AnanthaP IS-IT--Management Feb 13, 2003 152 IN \s is all white spaces. ^ is beginning of the string and $ the end of the string. So the first expression is, Begin with all spaces and then any character (* - wild card) and the second is spaces at the end. Like google, please try "alltooflat.com". End Upvote 0 Downvote
\s is all white spaces. ^ is beginning of the string and $ the end of the string. So the first expression is, Begin with all spaces and then any character (* - wild card) and the second is spaces at the end. Like google, please try "alltooflat.com". End
May 4, 2003 Thread starter #4 taubate Programmer Jun 29, 2001 141 US Thanks much! It was helpful. Upvote 0 Downvote