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 <[email protected]> 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 -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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
