|
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
but I need an expression that does what I explained in my opening post.
Siju Odeyemi wrote:
I'm trying to write a regular expression to split the file after every 10 paragraphs OR at every 1000 characters at most. Unfortunately, I can't seem to get the regular expression right. Can someone with regex skills please show me the light? I'm quite desperate.
Siju Odeyemi wrote:I don't know regexp syntax at all, I know that the split method ....
Siju Odeyemi wrote:
I don't know regexp syntax at all....
OCPJP 6
. . . and,Vinoth Kumar Kannan wrote: . . . Regex is no big deal. Its easy, yes. . . .
Henry Wong wrote:
I seriously recommend against using regexes if you don't know how they work (or their syntax). With regex, it is very easy to write code that you don't understand, even with some experience; to try it with no experience at all is sure to wind up with code you don't understand (and completely unmaintainable).
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
James Sabre wrote:
Joanne
Joanne Neal wrote:
James Sabre wrote:
As Vinoth said. Easy
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
James Sabre wrote:Edit : :-( Must be complex regex since nobody has pointed out that my regex is actually rubbish so I have added weight to the arguments of those who are against regex. At this time I can't correct the regex.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|