Question: I got a view in angularjs and I'm just trying to display the current date.

**html**

```
 <input type="text" class="form-control" ng-model="lis.ModifiedDate" id="ModifiedDate">

```

**app.js**

```
$scope.ModifiedDate = $filter("ModifiedDate")(Date.now(), 'yyyy-MM-dd');

```

Can you please assist me here i want to display default date and the save it on a table.

Answer: 
Simplest one by using word boundary `\b`.

```
\/\b

```

`\b` matches between a word character and a non-word character.

[DEMO](https://regex101.com/r/zH2xJ0/2)
Matching slashes NOT followed by NON word character is not the same than followed by word character.

Have a try with:

```
/(?!\W)

```

This matches `slashes NOT followed by NON word character`

It matches the final slash in string: `PErs/`