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
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
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.
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
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)...
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
Post a sample of the data you are using and any reason why the data is in so complicated a format ?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.