From: Phrogz Date: 2007-12-01T16:05:01+09:00 Subject: Re: tag, tag_end in parser On Nov 30, 11:05 pm, Martin Durai wrote: > I have created a buffer class and i was able to read a character, string > and write in the buffer. Iam in process of creating pull parser. Now iam > parsing only with strings. if i give a string > "defghijk" as a string input i need to check the > starting of tag and end of tag. could any one help me to do tag_start > and tag_end method. Check out String#scan method with regexp %r{} and StringScanner class (require 'strscan').