![]() |
|
| Regular Expression or array at fault? |
| Regular Expression or array at fault? |
|
Site Admin ![]()
|
I'm trying to understand more about the context of the question.
Here is some sample code - is this even on the right topic?
|
|||||||||||||||||
|
_________________ Cheers. -- Mike Robb |
||||||||||||||||||
| Regular Expression or array at fault? |
|
Moderator ![]()
|
What I have is a text file read in to a variable (using JAVA) called probs.
So for example: probs="dog[cat<frog"; When the code worked I used: To find cat I did
Then this code would be TRUE
When the code did not work I used: To find cat I did
Then this code would be FALSE
Does that make it any clearer? |
|||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Regular Expression or array at fault? |
|
Site Admin ![]()
|
I took what your last post and built this example a bit further.
When I run it the all pass back TRUE. Any ideas on what you were doing differently?
|
|||||||||||||||||
|
_________________ Cheers. -- Mike Robb |
||||||||||||||||||
| Regular Expression or array at fault? |
|
Moderator ![]()
|
Thanks for your time on this Mike.
Hmm this time I test I get true like you do ........ but now it's lead me to the cookie function. Ok I'll give the real code this time.
the variable thepost is the original variable that's come via Java, through to the variable probs into the array theinfo[i] across to the variable dpostname.
Without my full code (which is huge) I guess you cannot test it. But a cookie is already set with the value THHAZ02 in it with the data l123456. Cookie contents:
Sorry to have wasted time rambling about regexp and arrays but that what I thought was the problem. So basically the cookie is not read properly unless thepost is converted to a string. |
|||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Regular Expression or array at fault? |
|
||
|
|


