Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » Parse
  • preg_replace of http adresses

    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 = ...
    Posted to Construction Advice (Forum) by hayopai on February 17, 2011
  • Help parsing EDI 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 ...
    Posted to Construction Advice (Forum) by natnat on July 8, 2009