12.Wechall-------------Training: Regex by Gizmore(3级)(得分2个)

0x01:题目

题目 题目地址链接
Regex (level 3) http://www.wechall.net/challenge/training/regex/index.php

0x02:WR

提示1 提示2 提示3 解题步骤
Ok, matching static strings is not the main goal of regular expressions.Your next task is to submit an expression that matches valid filenames for certain images. Your pattern shall match all images with the name wechall.ext or wechall4.ext and a valid image extension.Valid image extensions are .jpg, .gif, .tiff, .bmp and .png. Here are some examples for valid filenames: wechall4.tiff, wechall.png, wechall4.jpg, wechall.bmp /^wechall4?.(?:jpg

0x03:passwd/flag

/^wechall4?.(?:jpg|gif|tiff|bmp|png)$/

12.Wechall-------------Training: Regex by Gizmore(3级)(得分2个)