Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Return the last number of “Test”
#1
Solved: 10 Years, 9 Months, 1 Week ago
How can I use RegEx to just return the last number of “Test”?

Code:
Test = "NestedGrid1" or Test = "NestedGrid15"

To return 1 or 15?

I did figure this out:
xNGNum = replace(Test, "NestedGrid","")
but i am curious if there is a better way.

thx
Reply


Messages In This Thread
Return the last number of “Test” - by mv8167 - 02-04-2012, 03:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  regex works but how do i return the found string to a variable jove1776 2 3,281 08-24-2011, 06:17 PM
Last Post: jove1776

Forum Jump:


Users browsing this thread: 1 Guest(s)