# Regular Expressions

**URL:** https://community.mp3tag.de/t/regular-expressions/521
**Category:** Howto
**Created:** [October 16, 2003, 4:47pm UTC](https://community.mp3tag.de/t/regular-expressions/521 "2003-10-16T16:47:29Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![nickless](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nickless/32/36_2.png) [@nickless](https://community.mp3tag.de/u/nickless)
#### Post date: [March 29, 2005, 7:22pm UTC](https://community.mp3tag.de/t/regular-expressions/521/11 "2005-03-29T19:22:19Z")

</div>

This RegEx will convert abbreviations composed of single chars and points between (and/or behind it) to uppercase.  
Single chars without points around remains lowercase, except if a "-"char and a space is before it. (Example: "Songname - A text")

```
RegEx: ( |\.|^)(\w)(?= |\.|$)
Replace with: $1$upper($2)and
RegEx: ([^-])( \u )
Replace with: $1$lower($2)

```

Example: a.b a Reg.eX in p.o.d p. diidi e.t. - a bad a.i

```
==>
A.B a Reg.eX in P.O.D P. diidi E.T. - A bad A.I

```

Both regular expressions should be executed one after another

Use

```
RegEx: ( \u )
Replace with: $lower($1)instead of second RegEx to have chars after " - " lowercase too. (Example: "Songname - a text")

```

Regards  
nickless

Edit: removed some unnecessary characters from RegEx

---

_[View the full topic](https://community.mp3tag.de/t/regular-expressions/521)._
