I am fail to understand this
/\[\[([^|]*?)(?:\|([^|]*?)){0,1}\]\]/.exec(http.responseText) of this line
var result = /\[\[([^|]*?)(?:\|([^|]*?)){0,1}\]\]/.exec(http.responseText);
Please help me for this.
Fail to understant this code
Moderator: General Moderators
-
prasunhowlader
- Forum Newbie
- Posts: 2
- Joined: Sun May 24, 2009 9:40 pm
Re: Fail to understant this code
It's running a regular expression on the results of some AJAX call, looking for stuff like [[text]] or [[text|more text]].
Huh... looks to me like the expression has a bug in it...
Huh... looks to me like the expression has a bug in it...
Re: Fail to understant this code
Yeah looks like faulty regexp to me too
Re: Fail to understant this code
How so? We might have noticed different things.mikemike wrote:Yeah looks like faulty regexp to me too
Re: Fail to understant this code
On second glance I'm actually not sure. I could have swarn it was missing a closing square bracket earlier.....
-
prasunhowlader
- Forum Newbie
- Posts: 2
- Joined: Sun May 24, 2009 9:40 pm
Re: Fail to understant this code
Dear sir,
I have taken this code from Open source "OSCommerce project" and the code is running well.
I have taken this code from Open source "OSCommerce project" and the code is running well.