what happened to these threads??
people dont code now!?
I can't speak for anyone else, but I wrote a mockup main() and did some basic program design and decided I don't have time to make the entire thing. Perhaps this "beginner's" challenge was a little overambitious.
Yeah, I made one in python (which works-ish), but I had no idea how I was going to implement $ and ^.
If anyone's interested, this paper helped: http://swtch.com/~rsc/regexp/regexp1.html
Next one please!
@MG&TL
Actually implementing ^ and $ was easier IMO.
You only have to try to match the first/last 'n' chars (for ^ and $ respectively ) of the string with the regex in case no meta is present.
Else trying only the first/last word suffices.
Bookmarks