I currently have this:
^(.+)\(\w+\)|^(.+)\s\(\d{3}\:\d{3}\s\-\s\d{3}\:\d{3}\)
# 1 it matches only Foo
# 2 Foo has what is correct
# 3 matches foo , but it is in the element of the 3rd array [2]:
3rd array output:
(
[0] => Foo (100:200 - 300:400)
[1] =>
[2] => Foo
)
Bold is what I'm trying to match:
Foo (match11) this (100: 200 - 300: 400) end # 1
Foo has (not_matched) (100: 200 - 300: 400) end # 2
Foo (100: 200 - 300: 400) end # 3
note: im not trying to combine # 1, # 2, # 3 at the end of each line, this is just for reference.
"(100: 200 - 300: 400)", - , elseif "(not_matched) (100: 200 - 300: 400)", , "(100: 200 - 300: 400)"
elseif (not_matched) (100: 200 - 300: 400) " , 1 not_matched (100: 200-300: 400)
Edit:
, , , , , php.
(.+)\s\(\w+\)\s\(|(.+)\s\(\d{3}\:\d{3}\s\-\s\d{3}\:\d{3}\)
: http://www.rubular.com/r/NSpGcnyg0p
- , , , /.
, php, [1].
- , ?