Hi everyone! I am having a problem in getting the correct regular expression. I have the following string, and i want to get everything between [htmlcode] and [/htmlcode]
[htmlcode]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitl ed Document</title>
<style>
[/htmlcode]
using the following regular expression but this is not working, may be due to multiline issue
$regex="/\[htmlcode\](.+)\[\/htmlcode\]/"
[htmlcode]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitl ed Document</title>
<style>
[/htmlcode]
using the following regular expression but this is not working, may be due to multiline issue
$regex="/\[htmlcode\](.+)\[\/htmlcode\]/"
Comment