Hi I'm trying to fix an expression, to grab all sets of 2
words with a
space between them, ie: hello word (valid) C# sample (Valid)
hello.
world (Invalid) hello world. (invalid) <-- need to stop
capture before
the "." and cannot use \b since \b includes
"#"
this is the expression I am trying to work with, so far it
takes each
word fine seperately, but it does not take into account
hello. world
and it captured hello world.
(([\x23\x41-\xff]*\x2e?[\x23\x41-\xff]+)(?:[\x21-\x
2f\x41-\xff])?\s([\x23\x41-\xff]*\x2e?[\x23\x41-\x
ff]+)(?:[\x21-\x2f\x41-\xff])?)
the other problem is that it only takes pares sequentially,
I would need to have it do the follwing
hello world this is time
(hello word) (world this) (this is) (is time)
can anyone help me out.
Best Regards,
Alexandre Brisebois
http://www.pointnets
olutions.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|