|
|
Browse by Tags
All Tags » Parse
-
hi im using PHP and i got this function in my forumsoftware:
function links($text, $conf) {
$text = preg_replace("/(\s)http:\/\/([\S]+?)(\s)/i" , "$1http://$2$3" , " $text ");
$text = ...
-
I'm trying to parse this subset of edi text:
~PER*IC**TE*8092~HL*2*1*21*1~NM1*1P**YOW*JULIE*A~REF*ZH*92512~PRV*OR*ZZ*2070x~HL*3*2*22*1~HI
This is the text i'm trying to get:
HL*2*1*21*1~NM1*1P**YOW*JULIE*A~REF*ZH*92512~PRV*OR*ZZ*2070x
This is the RegEx i have so far: (?<!GS\*)HL\*[^\*]+\*[^\*]+\*21
but of course it only matches up ...
|
|
|