Saturday, May 11, 2013

How to validate data using regex?

Now, I have data (javascript) the same:



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



I use C# to regex data to Dictionary:



D[123] = string[] { "Product A", "$230" };

D[125] = string[] { "Product B", "$30" };

D[126] = string[] { "Product C", "$50" };



Can you help me pattern to Regex this data??

No comments:

Post a Comment