Saturday, May 11, 2013

How to validate data using regex?

Hi Wizend,


My data test is simple. Now, my data test is:


<script type="text/javascript">var d=[];d=[['123',1,'Product A','$230'],['125',,'Product B','$30'],['126',2,'Product C','$50'],['127',3,'Product D','$50']];show(d);</script>


Product A: "['123',1,'Product A','$230']" ==> PId, CateId, PName, PPrice.


Product B: "['125',,'Product B','$30']" ==> PId, CateId, PName, PPrice.


Product A and B belong a category (CateId = 1)


Can you write pattern of data test??????


No comments:

Post a Comment