Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex madness...
#2
Probably because .* matches as much as possible, including digits. Try .*? or [^\d]*

Or _s.rtrim("0123456789-")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)