Question: I am tired to find specific day about alarm and always run every day pleas who can help me 
AND use these code what error about this ,run every so i send dayOfWeek=1; but run every day 

```
 public void setAlarm(int dayOfWeek) {
     Toast.makeText(getApplicationContext(), dayOfWeek+","+h+","+m, 22222).show();
     cal1.set(Calendar.DAY_OF_WEEK, dayOfWeek);
     cal1.set(Calendar.HOUR, 11);
        cal1.set(Calendar.MINUTE, 0);
        cal1.set(Calendar.SECOND, 0);
        cal1.set(Calendar.MILLISECOND, 0);
        Intent intent = new Intent(this, RemmemberActivity.class);
        PendingIntent pendingIntent0 = PendingIntent.getBroadcast(this, 0,
                intent, 0);
        pendingIntent    = PendingIntent.getActivity(this, 12345,
                intent, PendingIntent.FLAG_UPDATE_CURRENT);

            Long alarmTime = cal1.getTimeInMillis();
            am   = (AlarmManager) getSystemService(Activity.ALARM_SERVICE);
        am.setRepeating(AlarmManager.RTC_WAKEUP, alarmTime,24 * 60 * 60 * 1000 , pendingIntent); 
}

```

Answer: 
It depens on what you want. You are not required to write anything into a regex, even  (empty) is a valid regex to some extent.

The difference in the two patterns is, that the first one **checks if the subject starts with the pattern** while the second one **checks if the whole subject matches the pattern exactly**.

`/abc/hello world` would match the first one, but not the second.

So to say, the scond pattern is a more specific version of the first one.
The first one matches on `/abc/aapje`, the second doesn't because it mandates that the end-of-line must follow after 1 to 3 word characters.