我甚至不知道从小数范围开始的位置。我正在寻找范围.0015到.008的单行模式。感谢
答案 0 :(得分:0)
使用代码比使用正则表达式更容易实现,但要使用正则表达式回答您的问题,您可以使用以下内容。
^
\.00
在行首处断言位置.00
按字面意思匹配(?:1[5-9]\d*|[2-7]\d*|80*)
1[5-9]\d*
匹配以下任一选项
[2-7]\d*
与任何数字后面的任意数字匹配15-19(即151,199999等)80*
匹配任意数字后面的任意数字2-7(即200,799999等)0
匹配8后跟任意数量的$
s(即8,80000)<div style="width: 50px; float: left">
<< Prev
</div>
<div style="float: left">
<h1>Some Info... this is the responsive div. Always the rest of the size extracting the 50px of the other divs</h1>
</div>
<div style="width: 50px; float: left">
Next >>
</div>
断言行尾的位置