【发布时间】:2016-06-11 11:22:38
【问题描述】:
假设,我有以下字符串(原始字符串中没有换行符):
Lorem ipsum dolor sit amet, [b]consectetur adipisici elit[/b],
sed eiusmod tempor incidunt ut labore et [fontSize=12]dolore [/fontSize=12]
magna aliqua` in my textarea.
我想提取字体大小(在本例中为 12),欢迎使用任何解决方案(包括正则表达式)。
【问题讨论】:
-
@bobblebubble:我的错误,已更正。
-
@jan ty 格式化我的代码
标签: javascript jquery regex string font-size