Click here to Skip to main content
16,013,642 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralNeed help sending SMS with VB.NET Pin
Werner Vos26-May-04 22:05
Werner Vos26-May-04 22:05 
GeneralRe: Need help sending SMS with VB.NET Pin
Dave Kreskowiak27-May-04 1:01
mveDave Kreskowiak27-May-04 1:01 
GeneralFree Visual Studio VB.NET Std. Edition Pin
TigerNinja_26-May-04 16:13
TigerNinja_26-May-04 16:13 
GeneralRe: Free Visual Studio VB.NET Std. Edition Pin
Aaron Eldreth27-May-04 9:58
Aaron Eldreth27-May-04 9:58 
Generalvariable pointers in .net Pin
Pugman81226-May-04 13:11
Pugman81226-May-04 13:11 
GeneralRe: variable pointers in .net Pin
Colin Angus Mackay26-May-04 13:38
Colin Angus Mackay26-May-04 13:38 
GeneralCheck if string is valid using regular expresion Pin
viettho26-May-04 12:43
viettho26-May-04 12:43 
GeneralRe: Check if string is valid using regular expresion Pin
Mike Ellison26-May-04 18:44
Mike Ellison26-May-04 18:44 
Hi John. How about this regular expression?

^(UC|CT|LS|PR|P1|P2|P3|P4|P5|P6|P7|P8|P9|PQ|QT|PC|SR|MV|SC|DC)\s*(=|<=|>=|\+|-|!=)\s*\d+$

  • The initial ^ makes the match at the beginning of the string (i.e. nothing can come before the code).
  • Next is a group of choices (your codes) surrounded by (parentheses) and seperated with vertical bars |.
  • The \s that follows means to match white space and the asterisk * says "zero or more times"... so the \s* allows for optional white space between the code and the operator.
  • Then the (=|<=|>=|\+|-|!=) group is another list of choices, seperated by |, surrounded by (...) like before. The + sign has special meaning in regular expressions, so it requires an escape backslash \ character in front of it to treat it as a literal + sign.
  • Next we have another \s*, again allowing for optional whitespace between the operator and the integer
  • We use \d+ to match one or more digits from 0 to 9... the \d means match a digit, and the + means "one or more times".
  • Finally, the $ dollar sign at the end matches the position at the end of the input string, meaning that no other characters may follow the digits.

I hope this helps.
GeneralRe: Check if string is valid using regular expresion Pin
Anonymous27-May-04 13:10
Anonymous27-May-04 13:10 
GeneralPrinting Multiple documents Pin
Thangavel26-May-04 4:07
Thangavel26-May-04 4:07 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak26-May-04 4:11
mveDave Kreskowiak26-May-04 4:11 
GeneralRe: Printing Multiple documents Pin
Thangavel26-May-04 4:41
Thangavel26-May-04 4:41 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak26-May-04 5:05
mveDave Kreskowiak26-May-04 5:05 
GeneralRe: Printing Multiple documents Pin
Thangavel26-May-04 19:07
Thangavel26-May-04 19:07 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak27-May-04 2:44
mveDave Kreskowiak27-May-04 2:44 
GeneralRe: Printing Multiple documents Pin
Thangavel28-May-04 23:24
Thangavel28-May-04 23:24 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak29-May-04 14:16
mveDave Kreskowiak29-May-04 14:16 
GeneralDataGridTableStyle Pin
joypreeti26-May-04 3:28
joypreeti26-May-04 3:28 
GeneralRe: DataGridTableStyle Pin
Werner Vos26-May-04 22:10
Werner Vos26-May-04 22:10 
GeneralRemote Events... Pin
waffleman26-May-04 2:48
waffleman26-May-04 2:48 
GeneralRe: Remote Events... Pin
Dave Kreskowiak26-May-04 3:47
mveDave Kreskowiak26-May-04 3:47 
GeneralRe: Remote Events... Pin
waffleman27-May-04 8:15
waffleman27-May-04 8:15 
GeneralRe: Remote Events... Pin
Dave Kreskowiak27-May-04 9:40
mveDave Kreskowiak27-May-04 9:40 
GeneralRe: Remote Events... Pin
waffleman1-Jun-04 3:13
waffleman1-Jun-04 3:13 
Generalmessanger password Pin
ahmad_yossef25-May-04 23:29
ahmad_yossef25-May-04 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.