I have troubles with the regexp to get HTML comments ("") from a long (multi-line) string. Comments that have line breaks
aren’t found, only the comments that are on the same line.
Here’s my current code:
result = s.match(/<!–(.*?)–>)
How do I get the regexp to scan for the pattern beyond newlines?
Jari W. [email protected] wrote: I have
troubles with the regexp to get HTML comments (“–>”) from a long
(multi-line) string. Comments that have line breaks
aren’t found, only the comments that are on the same line.
Here’s my current code:
result = s.match(/)
How do I get the regexp to scan for the pattern beyond newlines?
I have troubles with the regexp to get HTML comments ("") from a long (multi-line) string. Comments that have line breaks
aren’t found, only the comments that are on the same line.
Here’s my current code:
result = s.match(/<!–(.*?)–>)
How do I get the regexp to scan for the pattern beyond newlines?