title: preg_replace for html tag <blockquote>
body: <p>i have this 2 string and want to change it to html tags</p>
  
  <pre><code>1 : bq. sometext /* bq.+space+sometext+space or return
  </code></pre>
  
  <p>in this string.i want to convert it to this that start with bq.+space and end with space or return</p>
  
  <pre><code>&lt;blockquote author="author" timestamp="unix time in secs"&gt;sometext&lt;/blockquote&gt;
  </code></pre>
  
  <p>in this string</p>
  
  <pre><code>2:  [quote author="author" date="unix time in secs"]
      some text
      [/quote] /* start with [qoute and get the text of author property then get
                  sometext form between ']' and '[/qoute]
  </code></pre>
  
  <p>i want to convert them to this :</p>
  
  <pre><code>&lt;blockquote author="author" timestamp="unix time in secs"&gt;sometext&lt;/blockquote&gt;
  </code></pre>
  
  <p>this regext not worked!:</p>
  
  <pre><code>#\bq(.| )(.*?)\n#
  </code></pre>