I’m using nodejs for a API testing. In order to test the contents of this if statement, I need to find a String that will match this regular expression.
if (arg.match(/^\/.*/)) {
// ...
}
Can anyone suggest a matching string?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use http://regexpad.com for testing your regular expressions. It will show you directly the matching texts.
In this case it will be
/afor example.Permalink to your example http://regexpad.com/?r=^\%2F.*&f=&m0=%2Fa#p-javascript