I need to use preg_match to check if a line is ending with /> or / >
I have created a function, that contains the followling line
if (!preg_match('\/>$', $str)) {
But it do not work, as it comes with this error
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash
How can I make it work?
Added an optional space between \ and >.