Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.44 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.44 KB

RegexForXmlNode

Regex pattern for XmlNode

argument:

node1.node2(name1=value1,name2=value2).node3=value

Nodes = {node1 , node2(name1=value1,name2=value2) , node3}

For every node in Nodes there will be AttributeNames and AttributeValues
example for Node = node2(name1=value1,name2=value2)
AttributeNames = {name1,name2}
AttributeValues = {value1,value2}

Value = {value}

Examples of some valid test cases

node1(b=c).node2=value
node(a=b,c=d).node=value
node1=value
node(b=c)

Examples of some invalid test cases

.node.node(a=b)(a=d)
node(a=b,c=d)node
node(a=b)=value=value
node(a=b)==value
node(a=b)=value=
node(a=b)=

Note

No spaces between testcase.
can check here for complete argument match Pattern Match Tester
The above tester matches complete argumnent