Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pattern Matching

Regex That Splits Long Text In Separate Sentences With Match()

This is a textarea where the user writes some text. I've written an example in it. First senten… Read more Regex That Splits Long Text In Separate Sentences With Match()

How To Represent Algebraic Data Types And Pattern Matching In Javascript

In functional language like OCaml, we have pattern matching. For example, I want to log users' … Read more How To Represent Algebraic Data Types And Pattern Matching In Javascript

Javascript / Jquery Faster Alternative To $.inarray When Pattern Matching Strings

I've got a large array of words in Javascript (~100,000), and I'd like to be able to quickl… Read more Javascript / Jquery Faster Alternative To $.inarray When Pattern Matching Strings