By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,480 Members | 1,711 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,480 IT Pros & Developers. It's quick & easy.

regex regcmp

P: n/a
Hi group,

I am using regular expression functions regex and regcmp to validate some
record which are of the form-

REC1{ 'Bsgf' | 'Cjsdg' | 78 }

That is a fairly simple job.
But i have to extend it to handle nested records say like a record REC2
which contains REC1

like :

REC2{'sjsd' | 2 | REC1{'Bsgf' | 'Cjsdg' | 78 }| REC2{ 'Bsgf' | 'Cjsdg' |
78 }}

Now the number preceding the nested record tells how many records will be
present. In this case, it is 2.

Can u pls suggest some way to handle nested regular expressions.

Thanks in advance
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Raghavendra Mahuli" <ra************@in.bosch.com> writes:
I am using regular expression functions regex and regcmp to validate some
record which are of the form-

REC1{ 'Bsgf' | 'Cjsdg' | 78 }

[snip]

Standard C has no support for regular expressions. Try a newsgroup
that's specific to your system (comp.unix.programmer, perhaps?).

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.