Page 1 of 1

How to capture the first letter in a not-repeating string ?

Posted: Mon Sep 23, 2013 6:52 pm
by hackoo
Hi ;)
I want to create a function for capturing the first letter in a not-repeating string
For example if have this :
MyString = "aabbccddMffrryx"
So the first letter will be retuned as M
So i'm looking for the best and the easy way to do it in vbscript.
So i ask you how can i do this function (Method)
Thank you !

Re: How to capture the first letter in a not-repeating strin

Posted: Mon Sep 23, 2013 7:47 pm
by jvierra
You would use RegEx to do this.

Start here for a tutorial on this subject: http://www.regular-expressions.info/