docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 5.1Web Developer ManualVariable Tags
Copyright  2013, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com



<append>
<copy-scope>
<dec>
<define>
<elements>
<inc>
<insert>
<insert cached-href>
<insert file>
<insert href>
<insert realfile>
<insert scopes>
<insert variable>
<insert variables>
<roxen-automatic-charset-variable>
<range>
<scope>
<set>
<sprintf>
<sscanf>
<undefine>
<unset>
<use>
<value>
<vform>

<sscanf></sscanf>

Provided by module: Tags: Additional RXML tags

Extract parts of a string and put them in other variables. Refer to the sscanf function in the Pike reference manual for a complete description.


Attributes

format="pattern"

The sscanf pattern.


variables="list"

A comma separated list with the name of the variables that should be set.

<sscanf variables='form.year,var.month,var.day' format='%4d%2d%2d'>19771003</sscanf> &form.year;-&var.month;-&var.day;
1977-10-3

scope="name"

The name of the fallback scope to be used when no scope is given.

<sscanf variables='year,month,day' scope='var' format='%4d%2d%2d'>19801228</sscanf> &var.year;-&var.month;-&var.day;<br /> <sscanf variables='form.year,var.month,var.day' format='%4d%2d%2d'>19801228</sscanf> &form.year;-&var.month;-&var.day;
1980-12-28
1980-12-28

return="name"

If used, the number of successful variable 'extractions' will be available in the given variable.