Re: [flexcoders] AS3 regexp doesnt implement lookbehind?
Thanks for a resource. Theres lookbehind in list of operators but I just cant get it working. I just tried to test some other simple lookbehind expressions and they doesnt work too. sestdiena, 2008, 24 maijs 19:55 EECOLOR [EMAIL PROTECTED] rakstīja: It should have a look behind. I think you can find all your answers here: http://gskinner.com/RegExr/ There is also an Air version available. At the right side you can find the capabilities. Greetz Erik On 5/24/08, Janis Radins [EMAIL PROTECTED] wrote: Hey people! I'm playing here with some RegExp stuff. Should have learned it long time ago tho I started just recently. So, i was playing with syntax highlighter in AS3 and stumbled upon difficulties on how to match doc tag inside block comment. After several hours I came up with genius expression - /(?=\/\*(?:[^*]|\*[^*\/])*)(@\w*)/mg It works perfectly in text editor I'm using to test expressions but it halts in AS3. Each of the groups select what they are supposed to perfectly, but they do not work togeather. I did some googling and couldnt find definitive answer what might be the problem. So, could it be that AS3 RegExp engine doesn't implement lookbehind? Can anyone confirm that or maybe someone knows how comet that bastid doesn't work in AS3? thanks in advance Jānis
Re: [flexcoders] AS3 regexp doesnt implement lookbehind?
Let's say you have the following text: This is a test And this regular expression: /(?=this).*/gi The match would be this: is a test Works fine as far as I can tell. Greetz Erik On 5/25/08, Janis Radins [EMAIL PROTECTED] wrote: Thanks for a resource. Theres lookbehind in list of operators but I just cant get it working. I just tried to test some other simple lookbehind expressions and they doesnt work too. sestdiena, 2008, 24 maijs 19:55 EECOLOR [EMAIL PROTECTED] rakstīja: It should have a look behind. I think you can find all your answers here: http://gskinner.com/RegExr/ There is also an Air version available. At the right side you can find the capabilities. Greetz Erik On 5/24/08, Janis Radins [EMAIL PROTECTED] wrote: Hey people! I'm playing here with some RegExp stuff. Should have learned it long time ago tho I started just recently. So, i was playing with syntax highlighter in AS3 and stumbled upon difficulties on how to match doc tag inside block comment. After several hours I came up with genius expression - /(?=\/\*(?:[^*]|\*[^*\/])*)(@\w*)/mg It works perfectly in text editor I'm using to test expressions but it halts in AS3. Each of the groups select what they are supposed to perfectly, but they do not work togeather. I did some googling and couldnt find definitive answer what might be the problem. So, could it be that AS3 RegExp engine doesn't implement lookbehind? Can anyone confirm that or maybe someone knows how comet that bastid doesn't work in AS3? thanks in advance Jānis
Re: [flexcoders] AS3 regexp doesnt implement lookbehind?
Your sample works. Thanks a lot for proving that look behind works. Tho I still have no idea how come my expression doesn't. I am using editpad pro for testing of my expressions and my expression works grate in there. Strange that AS3 threats it otherwise, must be some regexp implementation specific issue. svētdiena, 2008, 25 maijs 20:58 EECOLOR [EMAIL PROTECTED] rakstīja: Let's say you have the following text: This is a test And this regular expression: /(?=this).*/gi The match would be this: is a test Works fine as far as I can tell. Greetz Erik On 5/25/08, Janis Radins [EMAIL PROTECTED] wrote: Thanks for a resource. Theres lookbehind in list of operators but I just cant get it working. I just tried to test some other simple lookbehind expressions and they doesnt work too. sestdiena, 2008, 24 maijs 19:55 EECOLOR [EMAIL PROTECTED] rakstīja: It should have a look behind. I think you can find all your answers here: http://gskinner.com/RegExr/ There is also an Air version available. At the right side you can find the capabilities. Greetz Erik On 5/24/08, Janis Radins [EMAIL PROTECTED] wrote: Hey people! I'm playing here with some RegExp stuff. Should have learned it long time ago tho I started just recently. So, i was playing with syntax highlighter in AS3 and stumbled upon difficulties on how to match doc tag inside block comment. After several hours I came up with genius expression - /(?=\/\*(?:[^*]|\*[^*\/])*)(@\w*)/mg It works perfectly in text editor I'm using to test expressions but it halts in AS3. Each of the groups select what they are supposed to perfectly, but they do not work togeather. I did some googling and couldnt find definitive answer what might be the problem. So, could it be that AS3 RegExp engine doesn't implement lookbehind? Can anyone confirm that or maybe someone knows how comet that bastid doesn't work in AS3? thanks in advance Jānis
[flexcoders] AS3 regexp doesnt implement lookbehind?
Hey people! I'm playing here with some RegExp stuff. Should have learned it long time ago tho I started just recently. So, i was playing with syntax highlighter in AS3 and stumbled upon difficulties on how to match doc tag inside block comment. After several hours I came up with genius expression - /(?=\/\*(?:[^*]|\*[^*\/])*)(@\w*)/mg It works perfectly in text editor I'm using to test expressions but it halts in AS3. Each of the groups select what they are supposed to perfectly, but they do not work togeather. I did some googling and couldnt find definitive answer what might be the problem. So, could it be that AS3 RegExp engine doesn't implement lookbehind? Can anyone confirm that or maybe someone knows how comet that bastid doesn't work in AS3? thanks in advance Jānis
Re: [flexcoders] AS3 regexp doesnt implement lookbehind?
It should have a look behind. I think you can find all your answers here: http://gskinner.com/RegExr/ There is also an Air version available. At the right side you can find the capabilities. Greetz Erik On 5/24/08, Janis Radins [EMAIL PROTECTED] wrote: Hey people! I'm playing here with some RegExp stuff. Should have learned it long time ago tho I started just recently. So, i was playing with syntax highlighter in AS3 and stumbled upon difficulties on how to match doc tag inside block comment. After several hours I came up with genius expression - /(?=\/\*(?:[^*]|\*[^*\/])*)(@\w*)/mg It works perfectly in text editor I'm using to test expressions but it halts in AS3. Each of the groups select what they are supposed to perfectly, but they do not work togeather. I did some googling and couldnt find definitive answer what might be the problem. So, could it be that AS3 RegExp engine doesn't implement lookbehind? Can anyone confirm that or maybe someone knows how comet that bastid doesn't work in AS3? thanks in advance Jānis