Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove doubles from string
#16
After a few days i had the time to try it but it didn't work, i think it is my stupidity or something what i simply don't understand but i do a findrx over a piece of text with something like this:

findrx(s "(10|20|25)(?:\.\d{1,3}){3}" 0 4 a)

the result is 10.10.10.1010.10.10.1020.20.20.2010.10.10.1025.25.25.25

And with this i do a test for each ip so if there are doubles/triples it is inefficient..

And doesn't give something the member function can split, my questions are:
- is it possible to exclude doubles from the result or
- filter the doubles from this result in a decent way?

Thanks for your time in advance

Freggel


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)