Skip to main content

Posts

Featured

Finding years in text

Its interesting to parse text and find a time slice. Lets have an example: In 305 BC, Ptolemy took the title of Pharaoh. As Ptolemy I Soter (“Saviour”), he founded the Ptolemaic dynasty that was to rule Egypt for nearly 300 years. We can extract from above [-305] An invasion of Macedonia and Greece by Goths, who had been displaced from their lands on the Black Sea, was defeated by emperor Claudius II Gothicus at the Battle of Naissus in 268 or 269 years. here are two years [268] and [269] But there could be a range: Ptolemy successfully defended Egypt against an invasion by Perdiccas in 321 B.C. and consolidated his position in Egypt and the surrounding areas during the Wars of the Diadochi (322–301 BC). Above text contains [-321] and range [-322, -301] Here roman digits At the end of the II century BC, the Pharnavazid king Pharnajom was dethroned by his own subjects and the crown given to the Armenian prince Arshak who ascended the Iberian throne in 93 BC, establishin

Latest Posts

Noise words

Word frequency in text

Reversing binary tree

Ring buffer