1st question:
I've a HTML form, I must create an XML fragment from it and add this piece of XML to an existing XML file, that I use as a simple database.
For example:
[code]
<database>
<record id="0">
<name>john</name>
<phone>234</phone>
</record>
<record id="1">
<name>Henry</name>...
Hi all!
I've a little question ;-)
I must create a regexp that matches only:
true|false|0|1
so I tryed with this one:
0|1|true|false
it seems to work well, but it matches also with:
truex falsehood and so on..
so I tried this one:
^(0|1|true|false)$
but this one doesn't seems to work as I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.