0

Hello all

I want to split regular expression values in the list (in quotes)

list("A","B"....... )

What is the best way to go about this?

Regards

4
Contributors
5
Replies
6
Views
10 Years
Discussion Span
Last Post by ~s.o.s~
0

Hello all

I want to split regular expression values in the list (in quotes)

list("A","B"....... )

What is the best way to go about this?

Regards

Code it yourself or use regex library.

0

I have looked at the regexp man pages but it is very terse.

When i search google, all examples appear to be in perl.

Do you have any regexp examples in C?

Thanks

0

This isn't as straightforward as you might think.

Those perl regexes that look like this

(A)|(B)|(C)

for your "A","B","C" test search will work pretty much.

What OS are you on? Do you have a regex library installed? which one?(if you can tell)...

0

Maybe I'm oversimplifing this but could you split the string using just the comma as a delimiter?

I.e:-

"A,B,C,D"

After separation:-

A
B
C
D
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.