|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Regex groups / was: Re: Move leading/trailin
Abel Braaksma wrote:
forgot to mention: the rules of greediness are interesting in this last example. Suppose you turn it around: regex: (.)|(t) now, you may thing that regex-group(1) contains all other chars and regex-group(2) will contain all 't' characters. Alas, this is not so. Though regex-group(2) exists and will not raise an error (luckily), it will never match anything, i.e., will always be empty. This is because the greediness rules will match (.) for everything, including any 't' character, succeeding before right away. So, the above acts the same as: regex: (.)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






