Skip to content

Instantly share code, notes, and snippets.

View JeremyHutchings's full-sized avatar

Jeremy Hutchings JeremyHutchings

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jeremyhutchings on github.
  • I am jeremyhutchings (https://keybase.io/jeremyhutchings) on keybase.
  • I have a public key ASBbvjKfEb2FZqJcnbY8R1GOxu_BHklDSmDAnagECqZ72go

To claim this, I am signing this object:

<a class="pushbullet-subscribe-widget" data-channel="esportspools-cs" data-widget="button" data-size="small"></a>
<script type="text/javascript">(function(){var a=document.createElement('script');a.type='text/javascript';a.async=true;a.src='https://widget.pushbullet.com/embed.js';var b=document.getElementsByTagName('script')[0];b.parentNode.insertBefore(a,b);})();</script>
val input = "Enjoying this apple 3.14159 times today"
//input: String = Enjoying this apple 3.14159 times today
val pattern = """.* apple ([\d.]+) times .*""".r
//pattern: scala.util.matching.Regex = .* apple ([\d.]+) times .*
val pattern(amountText) = input
//amountText: String = 3.14159