web上的正则表达式

Renáta Hodován, Zoltán Herczeg, Ákos Kiss
{"title":"web上的正则表达式","authors":"Renáta Hodován, Zoltán Herczeg, Ákos Kiss","doi":"10.1109/WSE.2010.5623572","DOIUrl":null,"url":null,"abstract":"On the web, static pages fade into the past; web sites use server and client-side scripting techniques to improve the user experience. For client-side scripting, JavaScript is by far the most commonly used dynamic language. In these scripts, regular expressions are widely used for several purposes, e.g., for text filtering and form validation. In this paper, we take a closer look at regular expressions on the web. We investigate historical data and determine the trends of the use of regular expressions over time on various web sites. Then, we also take a snapshot of the current status. We find that although regular expressions are being used more and more often, their use is highly repetitive: on the most popular web sites only 4% of the regular expressions are unique. Based on this result, we show that web browsers can cut down regular expression compilation time to the third by applying caching techniques.","PeriodicalId":231763,"journal":{"name":"2010 12th IEEE International Symposium on Web Systems Evolution (WSE)","volume":"41 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-11-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":"{\"title\":\"Regular expressions on the web\",\"authors\":\"Renáta Hodován, Zoltán Herczeg, Ákos Kiss\",\"doi\":\"10.1109/WSE.2010.5623572\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"On the web, static pages fade into the past; web sites use server and client-side scripting techniques to improve the user experience. For client-side scripting, JavaScript is by far the most commonly used dynamic language. In these scripts, regular expressions are widely used for several purposes, e.g., for text filtering and form validation. In this paper, we take a closer look at regular expressions on the web. We investigate historical data and determine the trends of the use of regular expressions over time on various web sites. Then, we also take a snapshot of the current status. We find that although regular expressions are being used more and more often, their use is highly repetitive: on the most popular web sites only 4% of the regular expressions are unique. Based on this result, we show that web browsers can cut down regular expression compilation time to the third by applying caching techniques.\",\"PeriodicalId\":231763,\"journal\":{\"name\":\"2010 12th IEEE International Symposium on Web Systems Evolution (WSE)\",\"volume\":\"41 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2010-11-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"4\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2010 12th IEEE International Symposium on Web Systems Evolution (WSE)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/WSE.2010.5623572\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2010 12th IEEE International Symposium on Web Systems Evolution (WSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/WSE.2010.5623572","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

摘要

在网络上,静态页面逐渐成为过去;Web站点使用服务器和客户端脚本技术来改善用户体验。对于客户端脚本,JavaScript是迄今为止最常用的动态语言。在这些脚本中,正则表达式被广泛用于多种目的,例如,用于文本过滤和表单验证。在本文中,我们将深入研究web上的正则表达式。我们调查历史数据,并确定在各种网站上随时间使用正则表达式的趋势。然后,我们还对当前状态进行快照。我们发现,尽管正则表达式的使用越来越频繁,但它们的使用是高度重复的:在最流行的网站上,只有4%的正则表达式是独特的。基于这个结果,我们证明了web浏览器通过应用缓存技术可以将正则表达式编译时间减少到三分之一。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Regular expressions on the web
On the web, static pages fade into the past; web sites use server and client-side scripting techniques to improve the user experience. For client-side scripting, JavaScript is by far the most commonly used dynamic language. In these scripts, regular expressions are widely used for several purposes, e.g., for text filtering and form validation. In this paper, we take a closer look at regular expressions on the web. We investigate historical data and determine the trends of the use of regular expressions over time on various web sites. Then, we also take a snapshot of the current status. We find that although regular expressions are being used more and more often, their use is highly repetitive: on the most popular web sites only 4% of the regular expressions are unique. Based on this result, we show that web browsers can cut down regular expression compilation time to the third by applying caching techniques.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信