J
jake
I am not very good with regular expressions, so can somebody please
tell me why this simple Regex pattern
"<!DOCTYPE ONIXmessage*>"
does not match the string
"<!DOCTYPE ONIXmessage SYSTEM http://www.editeur.org/onix/2.1/short/onix-international.dtd>"
?
but this pattern does
"<!DOCTYPE ONIXmessage*" ?
Notice the omission of the greater-than character ">".
The complete line of code is
bool goodMatch = (new Regex("<!DOCTYPE ONIXmessage*>")).IsMatch("<!
DOCTYPE ONIXmessage SYSTEM http://www.editeur.org/onix/2.1/short/onix-international.dtd>")
Your help is greatly appreciated.
jake
tell me why this simple Regex pattern
"<!DOCTYPE ONIXmessage*>"
does not match the string
"<!DOCTYPE ONIXmessage SYSTEM http://www.editeur.org/onix/2.1/short/onix-international.dtd>"
?
but this pattern does
"<!DOCTYPE ONIXmessage*" ?
Notice the omission of the greater-than character ">".
The complete line of code is
bool goodMatch = (new Regex("<!DOCTYPE ONIXmessage*>")).IsMatch("<!
DOCTYPE ONIXmessage SYSTEM http://www.editeur.org/onix/2.1/short/onix-international.dtd>")
Your help is greatly appreciated.
jake