user3186216 user3186216 - 1 year ago 115
ASP.NET (C#) Question

ASP.Net Regex Replace Pattern

Im new on the ASP.Net. I am working on a cart function.

My cart in session.



How i can use Regex Replace and replace only quantity;

Example; 0001|1 --- > 0001|3 (It will 3 quantities)

Thanks and sorry little english.

Answer Source

I don't really know what you need, but if the quantity is between the two | you can use this code :


If quantity is between the | and the , use this:


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download