Oct 29, 2016 05:05 PM
(This post was last modified: Oct 29, 2016 05:40 PM by WhatIsRS.)
Need help with this string.
Pretty much I need to detect if this exact string exists, however the numbers can be anything.
How can i do this using regex? Thanks
Below doesn't work... but it's what im trying to do
Current work-around:
Pretty much I need to detect if this exact string exists, however the numbers can be anything.
How can i do this using regex? Thanks
PHP Code
<?php
string PageEnd = "{\"total\":335,\"items\":[]}";
Below doesn't work... but it's what im trying to do
PHP Code
<?php
Regex r = new Regex("{\"total\":" + @"^\d+$" + ",\"items\":[]}");
if (r.Match(stringImComparing).Success)
{
//do stuff
}
Current work-around:
PHP Code
<?php
string PageEnd = "items\":[]}";
if (ReturnedHTML.Contains(PageEnd))
{
// Console.WriteLine("Found End Page");
MaxPage = k;
}


