another question: should i always include an appendTail() everytime i do an Append Replacement? although it does nothing... explicitly..
Type: Posts; User: chronoz13
another question: should i always include an appendTail() everytime i do an Append Replacement? although it does nothing... explicitly..
LOL i made it hahahahaha with the use of Pattern and Matcher class.. hahaha thanks for the hard code mate :D :D :D :D. i just need some explnation about those two String pattern/expression things...
oh there, somehow i got the logic of the program, appendReplacement() and appendTail() with the code above, im just confused with the pattern expression
([hH])(e)(l)(l)
does this mean, a...
i can only say thanks for the code for now.. its way too complicated for me , ill just post further questions if i had,, thanks again so much :D
oh there, now i use the .group() method, which is equivalent to
.substring(matcherObj.start(), matcherObj.end()); that returns a String object(sequence) where the matcher matches the pattern, im...
ahh not yet.. i dont have any idea how to use group() methods, ... but ill give it a try..
finally i found the error, and its on me LOL, i just notice im checking the pattern checking things with a different objects, one with a matcher object and another one with a string object.. but im...
uhm.. thats why im trying to push myself to the limit, because im trying to avoid creating temporary string objects with + operator, i have already solved the problem with a common approach, but it...
oh yes, i have used a while loop to the searching
while (matcher.find()) {
built.insert(matcher.start(), "egg");
}
but the output looks like this... hmmm...
hmm you mean,, i cant still use the find method to compensate with the problem?
yes, exactly.. :(
given a matcher object has already a pattern to match and a string value to search for.
1) is the .find() method similar to looping a character sequence just to find a matching pattern?
...