[英]Getting filename between multipal special characters using Regex
I'm trying to fetch the file names which are in between multiple special character like '$$' ( example $$yaktocat.png$$) , i think it's better to ignore single special character $, if not we cannot use that character inside the file. 我正在尝试获取介于多个特殊字符之间的文件名,例如'$$'(例如$$ yaktocat.png $$),我认为最好忽略单个特殊字符$,否则我们不能使用该字符在文件中。
sample data 样本数据
img src="$$yaktocat.png$$" alt="this is yaktocat image"
Regex trying to use 正则表达式尝试使用
(\$+?(.*?)\$+?)
but still that match the single instance also 但仍然与单个实例匹配
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.