nrinaudo on master
Update sbt to 1.6.2 Merge pull request #138 from nr… (compare)
nrinaudo on update-sbt-1.6.2
Update sbt to 1.6.2 (compare)
nrinaudo on update-kantan.sbt-2.8.2
nrinaudo on master
Update to kantan.sbt 2.8.2 Merge pull request #137 from nr… (compare)
nrinaudo on update-kantan.sbt-2.8.2
Update to kantan.sbt 2.8.2 (compare)
regex1
and regex2
are the two regular expressions you with to compose and str
the string you wish to apply them to
something=false&list=1,2,3¬hing=
. so depending on the key, i need to interpret the rhs differently.
(\w+)(:\d+)*
. and then compiled a Regex[(String,String)]
or Regex[(String,Seq[String])]
, I always got an error about an "empty group". I then went for (\w+)(:\d+)*?
and used Regex[(String, Option[String])]
. what can i do about this?
&
and =
. so a dedicated uri parsing library would not really fit.
:
, which I'm assuming is desirable but I might be wrong):
means in your regex?
*
(I think), it's just that your regex requires :
which your input doesn't contain
In case that someone uses Intellij IDEA: I just added support for kantan.regex to my plugin called Custom Postfix Templates. It allows you to easily expand
"abc:".evalRegex
to
"abc:".evalRegex(rx"")
by automatically adding
import kantan.regex._
import kantan.regex.implicits._
import kantan.regex.generic._
to your imports.
Moreover,
"xyz".rx
is expanded to
rx"xyz"
also by adding the import.
Please let me know if I can improve these postfix templates.