In PhpStorm I have create a live template that puts a REVIEW
tag in PHP comments: REVIEW[user_name]
text....
Then, in TODO -> Filter
tab I have created a pattern to match this tag : REVIEW[^\\s]
Unfortunately this pattern doesn't match the tag, but if I create a simple pattern like this REVIEW
, it matches. Maybe I can't use regular expression in normal way to define a pattern?
Your regular expression match only one non space after REVIEW
instead you can use *
for zero or more character or +
for one or more character :
REVIEW[^\s]*
Or
REVIEW[^\s]+
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.