Regular expressions - how


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Regular expressions - how

  1. #1
    Join Date
    Sep 2003
    Posts
    24

    Regular expressions - how

    Hi,

    I have
    String variable= "1234X562";

    The variable should contain only numbers...

    I would like to use regular expression and validate this variable.

    Could anybody show me some example code?
    Last edited by haiaw; 02-07-2006 at 01:35 PM.

  2. #2
    Join Date
    Dec 2005
    Location
    New Jersey
    Posts
    290
    What? I don't understand what you need help with.

  3. #3
    Join Date
    Dec 2005
    Posts
    97
    do you mean you want to get rid of the 'X' or just check to see if the String contains only numbers?

Similar Threads

  1. validating with regular expressions ?
    By naijacoder in forum .NET
    Replies: 1
    Last Post: 09-15-2005, 11:12 AM
  2. Regular Expressions to manipulate script Code
    By Tim Coulter in forum Web
    Replies: 1
    Last Post: 10-17-2001, 04:53 PM
  3. Regular expressions
    By Bikhod in forum Java
    Replies: 4
    Last Post: 09-25-2001, 12:08 PM
  4. Regular Expressions, Partial Strings
    By Paul Balmforth in forum Java
    Replies: 2
    Last Post: 09-17-2001, 11:00 AM
  5. Validation with Regular Expressions
    By Evan K. Stone in forum Web
    Replies: 0
    Last Post: 04-05-2000, 01:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center