wiki.anypage(query : str, seconds : num? , max : num? , linkonly : bool?, titlestyle : str?) : xml
Show the contents of a random page selected from the query's result set.
1.8.2 or later
| Name | Type | Description |
| query | str | The query string. |
| seconds | num | (optional, default: 3600) Interval in seconds for selecting another page |
| max | num | (optional, default: 100) Max query results |
| linkonly | bool | (optional, default: false) link to the page |
| titlestyle | str | (optional, default: "display: none;") Style for page title |
The query's result set in xml format
| Output | ||||||||||||||||||||||||
|
The behavior of string.matches() defies common sense. It is possible that it is functioning as intended, but if so then I can't see what the intent actually is. Examples: {{ string.matches("abcabc", "(abc)+") }} ==> [ "abcabc" ] Fine. How about: {{ string.matches("abcxabc", "(abc)+") }} ==> [ "abc", "abc" ] Why does this not also return [ "abc", "abc" ]? Here's the example from the string.matches() doc page: {{ string.matches("aba cad abra", "(a|b|r)+") }} ==> [ "aba", "a", "abra" ] Why does this not return [ "a", "b", "a", "a", "a", "b", "r", "a" ]? How is this supposed to work? | |||||||||||||||||||||||
|
String.IsDigit(str : str) : bool Check if first character in string is a decimal digit. Usage Restrictions8.05.2b or later Parameters
ResultTrue if the first character in the string is a decimal digit. Samples
| |||||||||||||||||||||||
|
string.Replace(text : str, before : str, after : str, ignorecase : bool) : str Replaces all occurrences of a string with another string. Usage Restrictions1.9.1 or later 9.02 or later for ignorecase argument Parameters
ResultThe string value with the specified section(s) replaced with a new value. Samples
| |||||||||||||||||||||||
| String.Replace |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by