MatchTheRegex
 MatchTheRegex 
 MatchTheRegex
How about trying to match a regular expression The website is running here.
Solution
- First we access the challenge using the provided url.
- We then get a web page asking for a valid input with input being parsed through a text box.  
- Now, lets try random strings.  
- The next step would be checking the source code to understand how the input is parsed.
- Press ctrl+uto view page source.
- Navigate to the javascript where the logic is coded.  
- The code has a function send_request()which retrieves the value entered in the input field with the id “name”, it then sends it as a query parameter in a fetch request to the/flagendpoint, and displays the value of the “flag” property from the response in an alert box.
- As the title suggests, the input should match a particular regex to pop out the flag.
- Checking the code again, we get a javascript comment that shows the regex ^p.....F!? 
- The comment shows a regex of a string with 8characters that starts with p and ends withFand the!is optional.
- I then come up with a random string piqwerFthat I use to pop out the flag. 
Eazy Peazy. Remember to stay vigilant in the digital wild west. Happy Hacking.
 This post is licensed under  CC BY 4.0  by the author.