Search:

Type: Posts; User: chronoz13

Search: Search took 0.08 seconds.

  1. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    another question: should i always include an appendTail() everytime i do an Append Replacement? although it does nothing... explicitly..
  2. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    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...
  3. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    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...
  4. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    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
  5. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    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...
  6. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    ahh not yet.. i dont have any idea how to use group() methods, ... but ill give it a try..
  7. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    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...
  8. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    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...
  9. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    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...
  10. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    hmm you mean,, i cant still use the find method to compensate with the problem?
  11. Replies
    18
    Views
    5,787

    Re: Matcher object .find() method question

    yes, exactly.. :(
  12. Replies
    18
    Views
    5,787

    Matcher object .find() method question

    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?

    ...
Results 1 to 12 of 12