-1

I have tried:

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

and:

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

but not working?

Josh Crozier
  • 202,159
  • 50
  • 343
  • 273
Sue
  • 11
  • 4

2 Answers2

1

Just make it simple:

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

Here's a working example.

Marco Bonelli
  • 48,251
  • 16
  • 95
  • 101
1

This is as simple as I could get it:

\w+\s\d+
BlackHatSamurai
  • 21,845
  • 20
  • 84
  • 147