Question: sorry, I need some help finding the right regular expression for this.
Basically I want to recognize via regex if the following format is in a string:

artist - title (something)

examples:

```
"ellie goulding - good gracious (the chainsmokers remix)"
"the xx - you got the love (florence and the machine cover)"
"neneh cherry - everything (loco dice remix)"
"my chemical romance - famous last words (video)"

```

I have been trying but haven't been able to find the right regular expression.

```
regex = "[A-Za-z0-9\s]+[\-]{1}[A-Za-z0-9\s]+[\(]{1}[\s]*[A-Za-z0-9\s]*[\)]{1}"

```

help please!

Answer: 
Well for storing images you can try this

* If you want to save images which are not coming from server and are stored in drawable/mipmap folder just store their id like

initialValues.put(COLUMN\_IMAGE, R.mipmap.demp);
* And if they are coming from server or api call just save their url and load them using any library such as picaso or something.

I tried the same in one of my app it worked.
This is a method to store your bitmap image into database, you need to assign a type of column as Blob for image in database table

```
protected long saveBitmap(SQLiteDatabase database, Bitmap bmp) {
        Log.d("ImageDatabase", "::  Method Called");
        int bytes = bmp.getByteCount();
        ByteBuffer buffer = ByteBuffer.allocate(bytes);
        bmp.copyPixelsToBuffer(buffer);
        byte[] array = buffer.array();

        Log.d("ImageDatabase", "::  ByteArray Created");
        ContentValues cv = new ContentValues();
        cv.put("img", bytes);
        Log.d("ImageDatabase", "::  Before Insert");
        long rs = database.insert("images", null, cv);
        Log.d("ImageDatabase", "::  After Insert");
        return rs;
    }

```