I am steping through a file one line at a time. 2 samples of data I want to match are:
1.
(x) [highlight]Testosterone Enanthate[/highlight](x) [highlight]200mg[/highlight]
IM injection ( ) 250mg
( ) 300mg
Patient's maintenance schedule:
(x) [highlight]Every two weeks[/highlight]
( ) Every three weeks
( ) Every month
( ) Every three days
and
2.
(x) [highlight]Testosterone Cypionate[/highlight] (x) [highlight]200mg[/highlight]
IM injection ( ) 250mg
( ) 300mg
Patient's maintenance schedule:
(x) [highlight]Every two weeks[/highlight]
( ) Every three weeks
( ) Every month
( ) Every three days
I use a regular exprssion to match the Testosterone Enanthate or Testosterone Cyprionate, then I push it into an array and then I want to match the (X) 200 mg and the (x) Every two weeks
(or wherever the (x) happens to be then put that data into the array. Because the pattern is the same for both how can I match them appriopriately?
Thanks,
Margamo
1.
(x) [highlight]Testosterone Enanthate[/highlight](x) [highlight]200mg[/highlight]
IM injection ( ) 250mg
( ) 300mg
Patient's maintenance schedule:
(x) [highlight]Every two weeks[/highlight]
( ) Every three weeks
( ) Every month
( ) Every three days
and
2.
(x) [highlight]Testosterone Cypionate[/highlight] (x) [highlight]200mg[/highlight]
IM injection ( ) 250mg
( ) 300mg
Patient's maintenance schedule:
(x) [highlight]Every two weeks[/highlight]
( ) Every three weeks
( ) Every month
( ) Every three days
I use a regular exprssion to match the Testosterone Enanthate or Testosterone Cyprionate, then I push it into an array and then I want to match the (X) 200 mg and the (x) Every two weeks
(or wherever the (x) happens to be then put that data into the array. Because the pattern is the same for both how can I match them appriopriately?
Thanks,
Margamo