• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Delimeter with * or +?

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all i want to thank everybody for helping me before in some questions ....
......

Hi i am trying to find some explanation using delimeters with Scanner and Matching
and have been having a Very big hard time trying to find out about delimeters with * and +
something like scanner.useDelimeter("//d*") or "//d+"...
Can someone help me ?
 
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best way to learn is to do. It took me less than 2 minutes to write, compile, and run this program:

 
peter kosmas
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you a lot but i have already read kathy Sierra book,khalids book ,experimented !
this part on these delimeters is not enough and still trying to figure out !
as much as you experiment ! you must allways understand the Base

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
* --> Zero or more
+ --> At least one

What confuses you?
 
Ruben Soto
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

peter kosmas wrote:Thank you a lot but i have already read kathy Sierra book,khalids book ,experimented !
this part on these delimeters is not enough and still trying to figure out !
as much as you experiment ! you must allways understand the Base


Peter,

Why don't you post an example that confuses you and explain what you don't understand about it? Maybe with some concrete information we can provide better tips.
 
peter kosmas
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's right !
i was playing with random questions !
searching and when i find it i will post it !
you are right !
the question was very confusing !
i WILL
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Regex advanced concepts are not included in exam objectives. But to clear concepts you may read through this tutorial.
Sun Tutorial on Regex
 
peter kosmas
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to Thank you for your help all of you
this cleared me a lot in problems with Regex
best Regards
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic