- .* = (any character)
- $ = end of line
- ^ = start of line
- \1 first group in replacement.
Text: Hello my friend
Search for: (.*) my (.*)
Replace with: \2 is \1
Result: friend is hello
This blog belongs to Patrick Fust and contains links mostly concerned about java and security issues.
I would like to see all the properties of a given object.
function popUpProperties(inobj) {Ex.:
op = window.open();
op.document.open('text/plain');
for (objprop in inobj) {
op.document.write(objprop + ' => ' + inobj[objprop] + '\n');
}
op.document.close();
}
popUpProperties(document.forms[0]);
The article discusses what kind of test that's needed in a project, and what the differences are between the different kind of tests.
Unit tests run fast. If they don't run fast, they aren't unit tests.
Enterprise-grade SOAs require a plan for addressing diverse security needs