Search Results

Search found 1 results on 1 pages for 'user216915'.

Page 1/1 | 1 

  • Java regex return after first match

    - by user216915
    hi how do i return after the first match of regular expression? (does the Matcher.find() method do that? ) say I have a string "abcdefgeee". I want to ask the regex engine stop finding immediately after it finds the first match of "e" for example. I am writing a method to return true/false if the pattern is found and i don't want to find the whole string for "e". (I am looking for a regex solution ) thanks

    Read the article

1