Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
184 views

PHP class which preserves line break by splitting the line into as many line break as it have

Can anyone here please review my PHP code which preserves line break by splitting the line into as many line break as it have? ...
forethought's user avatar
2 votes
1 answer
936 views

Regular Expression for parsing PHP annotations containing multiple lines and markup

I am writing a regular expression for parsing PHP annotations in a flexible way. I'd like to accomplish all the goals listed above with one single expression. So I would appreciate any suggestions ...
itsjavi's user avatar
  • 137
7 votes
2 answers
1k views

N-gram generation

I have the following code, but it's too slow. How can I make it faster? ...
Ahmad's user avatar
  • 71