Cerebrus,

Thanks for the quick reply much appreciated.

Using part of my example above, I am taking data from a text box and
putting into a string variable.

String ls_input

ls_input = control.Text

ls_input = 'TESTER$12'

I need to look at just the characters, 'TESTER', not '$12' and if they
are uppercase, then give me a message.

If the order was different, for example,  'T10E99S8T7E4R', all I want
to know if the characters are uppercase, not the numbers or special
characters, etc.

Hope this helps,

Thanks again.

On Nov 16, 8:34 am, Cerebrus <zorg...@sify.com> wrote:
> The best way to ask questions relating to RegEx is to post a sample
> set of input values along with hints specifying the cases you want to
> match and those that are not to be matched. That way, someone can
> build an expression for your scenario.
>
> I find that the examples you have posted are insufficient.
>
> On Nov 15, 10:41 pm, William V <william.vikt...@gmail.com> wrote:
>
>
>
> > I am trying to figure out how the MS Regular Expression class works,
> > currently I am using this class in PowerBuilder and I need to check
> > only text characters (not including #'s or special characters), if
> > they are either all uppercase or all lowercase(doesn't matter what
> > order).
>
> > For example, 'TESTER$10', 'W10E7EE'. If all characters are Ucase, give
> > message and if all lowercase, give message.
>
> > I have used many different combinations with no success. In addition I
> > have googled it and found different expressions, but they don't seem
> > to work or I am totally misunderstanding how this works.
>
> >http://www.grymoire.com/Unix/Regular.html
>
> > I have tried this: '^[A-Z]+$'. This works with only characters, but
> > once I add #'s or a special character it fails,
> > iole_regexp.Test( as_teststring ) returns false.
>
> > Plus I have tried to use \w ('^\w[A-Z]+$')  'Match any word character'
> > but that doesn't work once I add a # or special symbol.
>
> > I've tried this, '^(?=\w*[a-z])\w*$' , it works until I add a special
> > character. (tester12 works, tester$12 doesn't work).
>
> > Any help would be much appreciated.
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to