-1

I have tried:

/[A-Za-z]++[ ]*+[1-9]/ 

and:

/^[\D*]+[\s]+[\d]/

but not working?

Josh Crozier
  • 219,308
  • 53
  • 366
  • 287
Sue
  • 11
  • 1
  • 4

2 Answers2

1

Just make it simple:

/\w+\s\d+/ // with optional 'g' modifier

Here's a working example.

Marco Bonelli
  • 55,971
  • 20
  • 106
  • 115
1

This is as simple as I could get it:

\w+\s\d+
BlackHatSamurai
  • 22,588
  • 21
  • 86
  • 152