Page 1 of 1
Vortex - Rex - books, learning resources
Posted: Sat Jul 31, 2010 12:12 pm
by roboto
Is there any book or learning resources for Rex except manual? Some examples, theory behind it?
Vortex - Rex - books, learning resources
Posted: Sun Aug 01, 2010 8:33 pm
by mark
Sorry, no books. The tutorial goes over it briefly:
http://www.thunderstone.com/texis/site/ ... vxrex.html
Other than that it's mainly the manual and this message board.
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 8:47 am
by John
Url?
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 11:30 am
by mark
Oops, wrong url the first time. Here's the right one.
http://www.thunderstone.com/texis/site/ ... vxrex.html
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 3:21 pm
by roboto
Thanks for answer mark. I am now more familiar with rex after searching through this message board(it is great!).
But topic about rex in manual is still not well covered.
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 4:10 pm
by mark
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 5:11 pm
by roboto
This is just my opinion, but this page would be more useful with more examples
http://www.thunderstone.com/site/vortex ... sions.html
Also I think, maybe I'm wrong, that this regular expression '>>(=!)+)' from your example is not correct.
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 5:47 pm
by mark
Yes, more examples are always good.
That expression is ok.
>>(= : look for an open paren then
!)+ : match anything but close paren then
) : match close paren
!)+ could also be coded as [^)]+
For single characters you can go either way. But for a string you need !, as in >><td>=!</td>+</td>
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 6:08 pm
by roboto
But that expression doesnt match text between parentheses.
It matches text with parentheses. Something like this would return text between parentheses '>>(\P=!)+'
Vortex - Rex - books, learning resources
Posted: Mon Aug 02, 2010 10:56 pm
by mark
Correct. Whether the parens are desired as part of the data varies.
To ensure that there is a matching paren but not include either paren in the data use
>>(\P=!)+\F)