I need to rewrite some code from VB.NET into PHP:
Dim price as String = Regex.Match(html, "id=""price"">£\d+.\d+</span>").Value.Replace("id=""Acashprice"">£", "").Replace("</span>", "")
So I'm trying to begin by getting a match from the regex:
id="price">£\d+.\d+</span>
However, no matter how I format it, I am always told it is invalid – (i.e. no backslashes allowed, or what is p?). I think I may have to use preg_quote in conjunction to preg_match, but I can't get this working either. Any help would be much appreciated.