A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Regular expression - count newline characters
Joined: Dec 08, 2002
Jun 24, 2010 10:29:19
I have a requirement to count the number of newline characters in a varchar2 field in Oracle.
The catch is if the line starts with characters 'SS' it should be ignored in the count.
This is a test for SS not included so ignore
should return the count as 3
Is there a way to do this using regular expression ?
I agree. Here's the link:
- it saves me about five hours per week
subject: Regular expression - count newline characters
How do I find a text file is Unix or Dos format via Java API?
NewLine Problem in Regular Expressions
How to read \n in XML
Use regex for this?
Counting exact matches of substring.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013