Click here to Skip to main content
12,071,437 members (34,929 online)
Click here to Skip to main content

Tagged as

Stats

2.8K views
Posted

Counting lines in a string

, 17 Jan 2012 CPOL
I had to do something like this in XSLT. If the string is not too long (for some definition of "too long"), you can replace all newlines with "" and then take the difference in the two string lengths.
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Greg Baryza
Program Manager InterSystems Corporation
United States United States
Greg has over 40 years of experience in software and hardware development. He has managed application, operating
systems, compiler, and database development groups; run multi-product documentation teams; directed customer service organizations; project-managed multi-million dollar projects; and directed product management and marketing operations groups. His experience includes liaison responsibilities with international organizations, particularly in Japan.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160208.1 | Last Updated 17 Jan 2012
Article Copyright 2012 by Greg Baryza
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid