Search results
Results from the WOW.Com Content Network
This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named |1= if its value contains a = character. You may substitute this template—that is, if this template is used as {}, the resulting wikicode is "clean".
The Template:Str_number/trim extracts a number at the start of parameter 1. It takes a string as parameter, and returns the string trimmed to the beginning number if non-numeric text does not appear before the first number.
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Help; Learn to edit; Community portal; Recent changes; Upload file
Many trim functions have an optional parameter to specify a list of characters to trim, instead of the default whitespace characters. For example, PHP and Python allow this optional parameter, while Pascal and Java do not. With Common Lisp's string-trim function, the parameter (called character-bag) is required. The C++ Boost library defines ...
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Help; Learn to edit; Community portal; Recent changes; Upload file
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
The template trims matched pairs of leading and trailing single and double quotes from a string. Template parameters [Edit template data] Parameter Description Type Status String 1 The string to be trimmed String required See also {{ trim }}
New code should strongly consider {{#invoke:string|replace}} or {{#invoke:MultiReplace|main}}.For backward compatibility, both the input and pattern string are trimmed of surrounding whitespace before processing begins.