Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在尝试为显示数字和点的输入类型文本获取模式。翻阅苹果文档,我发现基本上可以使用正则表达式来仅提取键盘中的数字。就像是
<input type="text" pattern="[0-9]*"></input>
我正在寻找一种方法来准确地做到这一点,而且在键盘上也有一个点。任何想法都非常感谢。
谢谢
只需在字符类中包含一个点。
[0-9.]*
请注意,这也是“零个或多个数字和点”。
I am trying to get the total number of videos that are on a dynamically generated page. To do this I parse the page's html and search for all <object>, <iframe>
<object>
<iframe>