In Mysql db, I have many databases, like 

```
msgnotify_0,msgnotify_1....msgnotify_20,msgnotify_21.......msgnotify_98,msgnotify_99.

```

I want to only get database name including 

```
msgnotify_0,msgnotify_1....msgnotify_20,msgnotify_21,msgnotify_48,msgnotify_49

```

**not including**
`msgnotify_50,msgnotify_51.....msgnotify_98,msgnotify_99.`

Execute `show databases` will give me all the databases in the db,

Execute `show databases like 'msgnotify_%'` also give me all the databases.

how can I get the only previous 50 database names? 

**using regexp? how?**