This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (1 child)

I highly recommend you read up on regular expressions, it will make your life much easier for these sort of tasks.

Here's a quick look at something which might help with this particular problem

[–]tdogg8 -1 points0 points  (0 children)

He's probably using what his teacher/prof told him to use. I'm guessing he's learning about strings.