Say you have to parse strings to match something like this :

```
913|723

```

being `xxx|yyy` the coordinates.

How do I check with javascript and regex if the string matches the `xxx|yyy` (only numbers and the separator) ?