Solved

Please supply me regular expression for this code

Posted on 2009-03-31
3
181 Views
Last Modified: 2012-05-06
Can any  one supply me regular expression for this code
if ((chrgDesc == "GST") || (chrgDesc == "FSC") || (chrgDesc == "F03") ||

                                    (chrgDesc == "F04") || (chrgDesc == "V01") || (chrgDesc == "V02") ||

                                    (chrgDesc == "V03") || (chrgDesc == "V06") || (chrgDesc == "V07"))

Open in new window

0
Comment
Question by:GouthamAnand
3 Comments
 
LVL 20

Accepted Solution

by:
informaniac earned 500 total points
ID: 24026906
(GST)|(FSC)|(F03)|(F04)|(V01)|(V02)|(V03)|(V06)|(V07)
0
 
LVL 15

Expert Comment

by:oobayly
ID: 24028256
You might want to make this small change, as it would return success if you tested for "xxxGSTxxx"

^(GST)|(FSC)|(F03)|(F04)|(V01)|(V02)|(V03)|(V06)|(V07)$
0
 

Author Closing Comment

by:GouthamAnand
ID: 31564725
Thankyou
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now