我有这 2 个字符串并想将其更改为 html 标签
1 : bq. sometext /* bq.+space+sometext+space or return
在此字符串中。我想将其转换为以 bq.+space 开头并以空格结尾或返回的字符串
<blockquote author="author" timestamp="unix time in secs">sometext</blockquote>
在这个字符串中
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]
我想将它们转换为:
<blockquote author="author" timestamp="unix time in secs">sometext</blockquote>
这个正则表达式不起作用!:
#\bq(.| )(.*?)\n#