Regular expression creation

  • Thread starter Thread starter Spunny
  • Start date Start date
S

Spunny

Guest
I need 2 types of Regular expressions.

1st Expression:

Should allow only following characters

! “ # $ % & ‘ ( ) + , - . / 0 1 2 3 4 5 6 7 8 9 ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ` { | } _

2nd Expression:

should allow only following

A-Z all ASCII letters, Upper case only

0-9 all numbers

/ forward slash

- hyphen, not allowed as the first character in any field

? question mark

: colon

( open parentheses

) close parentheses

. period

‘ apostrophe

, comma

+ plus sign

* asterisk, DMT only and not allowed for CHP pay method transactions

space


Thank you

Continue reading...
 
Back
Top