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.
在为客户构建 Wordpress 网站时,我需要为他们的主题样式表创建一个标记索引。BBEdit 的 Make Marker 命令使用 grep 正则表达式来查找和“标记为”来为文档建立索引。供应商对特定主题的样式表进行了很好的评论: 1. /* (Category Name text) 2. -------------------------- ----- * / 我需要找到所有注释,即以 / *开头的行,然后将包含类别名称文本的行返回到 BBEdit“标记为”字段。
有人吗?:)
经过一番摸索,我找到了这个问题的答案。使用此找到索引条目
^/\* .*$
而“标记为”很简单
&