0

I want to write a regular expression that matches file names that start with zv and end with .csv like:

zvabc.csv
zv232323.csv
zvfdsfsdf.csv

What regex pattern can identify all above file names?

3
  • 1
    why you added java and javascript tags? Which language are you running? Commented Jul 2, 2014 at 6:53
  • You can definitely avoid regex here. Use string methods. Commented Jul 2, 2014 at 6:55
  • 1
    if you are running java then it would be "^zv.*\\.csv$" Commented Jul 2, 2014 at 6:56

1 Answer 1

3

You can do that with the following pattern:

^zv.*\.csv$
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.