I'd suggest to take that opportunity to learn on regexp and try a/ to understand what the one we gave you does and b/ how to modify it with your new requirement.
Franky, regex are not that hard to come up with -- it is harder to read an existing one than to write one :-) I suggest the following reading: - Regex as implemented by Java: http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html - Any book on Perl will have a regex section. The canonical reference is here: http://perldoc.perl.org/perlretut.html Learning regex is an essential tool in your programming knowledge. Maybe this will convince you: http://xkcd.com/208/ :-D Hope this helps, R/ On Tue, Mar 17, 2009 at 1:39 PM, guruk <ilovesi...@gmail.com> wrote: > > I will try it... looks good :) i love this regex stuff, but still have > no clue about.. haha > but if it works.. respect.. > can you also do something like sm1 (serge) that includes also > attributes like: > <status code="0"/> > > So i guess we need something like. > > takeit (OrgString, Tagstring, AltTag) > like: takeit (myString, "status", "code") > > and best (than all is included) > takeit (myString, "status", "code",position) > -- for example if this Tag appears several times in the code I could > specify which one I would like to parse :) > > Greets > Chris > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---