shahrukh1 Posted December 2, 2012 Share Posted December 2, 2012 (edited) trying to obtain: href="/echess/game?id=61279056" I do not know the length of the digits, but it is closed with a quotation. I do not know the starting digit. I do know, it will only be a number of unknown length expression attempted with: $expression = "#href=\"/echess/game?id=[0-9]*\"#i"; results: Failed Edited December 2, 2012 by shahrukh1 Quote Link to comment Share on other sites More sharing options...
Christian F. Posted December 3, 2012 Share Posted December 3, 2012 You need to escape the question mark, otherwise it'll be considered a meta-character that makes the "e" in "game" optional. Quote Link to comment Share on other sites More sharing options...
shahrukh1 Posted December 3, 2012 Author Share Posted December 3, 2012 thankyou, fixed with "#id=[0-9]*\"#i" Quote Link to comment Share on other sites More sharing options...
Christian F. Posted December 3, 2012 Share Posted December 3, 2012 You're welcome, glad I could help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.