Search results
Results from the WOW.Com Content Network
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 template trims whitespace from a string. Template parameters Parameter Description Type Status String 1 The string to be trimmed of whitespace String required See also {{ remove border }}
Main page; Contents; Current events; Random article; About Wikipedia; Contact us
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Help; Learn to edit; Community portal; Recent changes; Upload file
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.
Regular expressions (or regex) are a common and very versatile programming technique for manipulating strings. On Wikipedia you can use a limited version of regex called a Lua pattern to select and modify bits of text from a string. The pattern is a piece of code describing what you are looking for in the string.
This template removes the first word of the first parameter. Use |1= for the first parameter if the string may contain an equals sign (=). By default, words are delimited by spaces, but the optional parameter |sep= can set the separator to any character.
Template:String split is a convenience wrapper for the split function in Module:String2.. The split function splits text at boundaries specified by separator and returns the chunk for the index idx (starting at 1).