# String manipulation and regular expression

**URL:** <https://discuss.kotlinlang.org/t/string-manipulation-and-regular-expression/906>\
**Category:** Uncategorized\
**Created:** [February 19, 2013, 9:42am UTC](https://discuss.kotlinlang.org/t/string-manipulation-and-regular-expression/906 "2013-02-19T09:42:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddimitrov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ddimitrov/32/1519_2.png) [@ddimitrov](https://discuss.kotlinlang.org/u/ddimitrov)\
**Post date:** [February 19, 2013, 9:42am UTC](https://discuss.kotlinlang.org/t/string-manipulation-and-regular-expression/906/1 "2013-02-19T09:42:21Z")

</div>

Is there any documentation of the string handling functionality of Kotlin? In particular, I am interested in syntactical support for slicing and regex matching and parsing.

Also, is there an equivalent of the slashy strings?

---

<div class="post-metadata">

**Author:** ![geevee](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/geevee/32/1475_2.png) [@geevee](https://discuss.kotlinlang.org/u/geevee)\
**Post date:** [February 19, 2013, 10:52am UTC](https://discuss.kotlinlang.org/t/string-manipulation-and-regular-expression/906/2 "2013-02-19T10:52:33Z")

</div>

For string we have almost everything that Java does, plus some extra utility functions, see [extension functions for String](http://jetbrains.github.com/kotlin/versions/snapshot/apidocs/kotlin/jet/String-extensions.html). For regex matching, use Java API.

There is no equivalent for slashy things, and it hardly will appear, because regular expressions are not used often enough to have special syntax in Kotlin. &nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![ddimitrov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ddimitrov/32/1519_2.png) [@ddimitrov](https://discuss.kotlinlang.org/u/ddimitrov)\
**Post date:** [February 19, 2013, 11:54am UTC](https://discuss.kotlinlang.org/t/string-manipulation-and-regular-expression/906/3 "2013-02-19T11:54:11Z")

</div>

How did you find that doc page? When I click on "All Classes" in the KotlinDoc, it does not show me anything in the jet.\* packages?

Are there any extension functions/properties for Pattern and Matcher?

---

<div class="post-metadata">

**Author:** ![geevee](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/geevee/32/1475_2.png) [@geevee](https://discuss.kotlinlang.org/u/geevee)\
**Post date:** [February 19, 2013, 11:58am UTC](https://discuss.kotlinlang.org/t/string-manipulation-and-regular-expression/906/4 "2013-02-19T11:58:04Z")

</div>

[Kotlin API home](http://jetbrains.github.com/kotlin/versions/snapshot/apidocs/index.html) → Packages / kotlin → Extensions / jet.String

Unfortunately, there are no extra regexp API yet. &nbsp;&nbsp;
