[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Regex groups / was: Re: Move leading/trailing s
Abel Braaksma wrote:
Please note the subtle differences between the above mentioned solution and the one I proposed. Both have their pros and cons. Depending on your final needs, one or the other may suit you best. Using [as the above mentioned solution suggested] Though familiar with RegExp functions in various languages, I am not sure how this one works, so I wonder what happens when the condition of the first regex group cannot be satisfied. Supposing that the second matches, will I then have to refer to it as regex-group(1) or still as regex-group(2)? I.e., do the numbers index the groups defined in the regex or the substrings that actually matched one of the groups? Doing The latter technique seems to perfectly solve my task of simply "squeezing" leading and trailing spaces from element content out into mixed content. Thank you again for your efforts in providing me all this information. Yves
|
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
|