Home arrow static arrow Java Programming [Archive] - Regex recursion explain
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Regex recursion explain
This topic has 57 replies on 4 pages.    « Previous | 1 | 2 | 3 | 4 | Next »

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 7, 2004 6:22 PM (reply 30 of 57)



 
alright,

This part of the code is quite confusing...

can someone add some comments in here ?

case '*': // 0 or more characters      if(domatch(p.substring(1), v)) //excluding 1 char if domatch              return true;            if(v.length() == 0)         return false;              return domatch(p, v.substring(1)); 


Whats the difference between args[0] and args[1] ?
 

Posts:826
Registered: 7/1/03
Re: Regex recursion explain   
Aug 7, 2004 6:23 PM (reply 31 of 57)



 
OK -
Step by step

Is this your homework or mine?

/k1
 

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 7, 2004 6:27 PM (reply 32 of 57)



 
listen there is no time to play this **** okay?

come to the point
 

Posts:826
Registered: 7/1/03
Re: Regex recursion explain   
Aug 7, 2004 6:28 PM (reply 33 of 57)



 
You never seem to answer my questions with valid answers.

Is this your homework or mine?

/k1
 

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 7, 2004 6:34 PM (reply 34 of 57)



 
AHA! GOT THE ANSWER

LOL

just learnt to "think" recursively LOL

 

Posts:826
Registered: 7/1/03
Re: Regex recursion explain   
Aug 7, 2004 6:35 PM (reply 35 of 57)



 
Congratulations.

/k1
 

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 7, 2004 6:47 PM (reply 36 of 57)



 
case '*': // 0 or more characters      if(domatch(p.substring(1), v))  // THIS**              return true;                if(v.length() == 0)         return false;              return domatch(p, v.substring(1)); //THIS**


so both of THIS** lines Execute at the SAME time right?
 

Posts:826
Registered: 7/1/03
Re: Regex recursion explain   
Aug 7, 2004 6:54 PM (reply 37 of 57)



 
Are you saying that you believe this program to be multi-threaded??

Oh, btw, is this your homework or mine? - you never really answered properly.

/k1
 

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 7, 2004 6:59 PM (reply 38 of 57)



 
 case '*': // 0 or more characters if(domatch(p.substring(1), v))  // THIS**<div class="jive-quote"> </div> return true;  if(v.length() == 0) return false;  return domatch(p, v.substring(1)); //THIS**  WHY can't this be if (domatch(p.substring(1), v.substring(1)) ? ? huh?  


this is OP homework
 

Posts:826
Registered: 7/1/03
Re: Regex recursion explain   
Aug 7, 2004 7:03 PM (reply 39 of 57)



 
Not sure what you are saying.

Does you mean that you agree this is your homework not mine?

/k1
 

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 7, 2004 7:08 PM (reply 40 of 57)



 
can anyone tell me whats the use of

asterix and question mark is switch?
 

Posts:826
Registered: 7/1/03
Re: Regex recursion explain   
Aug 7, 2004 7:21 PM (reply 41 of 57)



 
I see you're immensely adept at avoiding direct questions. However, I just timed out.

We could, in these couple of hours actually analysed that program and truly understood it, how it works, and why it sucks so badly.

We could have enjoyed discovering concepts beyond a line of code, and seen how to evaluate and assess source code, so that next time you saw a new toy program like the OP, you'd not just be confused, or too detail-orientated, but have a path to your own solutions and to make your own decisions about what you are viewing instead of being confused by every twist and turn of someone else's rotten design.

But you didn't want to go there.

Good night, A, and good luck (I have a feeling you're going to need it).

/k1

 

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 7, 2004 7:23 PM (reply 42 of 57)



 
Yeah...

so, lets start our discovery shall we ?

I hope its not too late
 

Posts:826
Registered: 7/1/03
Re: Regex recursion explain   
Aug 8, 2004 4:32 AM (reply 43 of 57)



 
Sadly it was too late. I'd given up and gone to bed.

Some other time maybe.

/k1
 

Posts:357
Registered: 8/5/04
Re: Regex recursion explain   
Aug 8, 2004 6:23 AM (reply 44 of 57)



 
Sadly it was too late. I'd given up and gone to bed.

Some other time maybe.

Go Away Kid, You bother me.

 
This topic has 57 replies on 4 pages.    « Previous | 1 | 2 | 3 | 4 | Next »