Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^6: Matching range of text with another string in between

by periodicalcoder (Novice)
on Apr 22, 2016 at 19:18 UTC ( [id://1161253]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Matching range of text with another string in between
in thread Matching range of text with another string in between

It looks like I misunderstood your question about the line endings. The file is provided by MediCal and is in the "ANSI ASC X12" format which they also referred to as an "ANSI 835s" file.

According to Notepadd++ the end of line characters are CR LF. I hope that helps.

  • Comment on Re^6: Matching range of text with another string in between

Replies are listed 'Best First'.
Re^7: Matching range of text with another string in between
by Anonymous Monk on Apr 22, 2016 at 19:28 UTC

    Editors often mess with line endings, and are not to be trusted. Does Windows have a raw dump program (like Linux "od") that can show real file contents?

Re^7: Matching range of text with another string in between
by Anonymous Monk on Apr 22, 2016 at 19:52 UTC

    I looked up a spec for 835 and there is no CAS* There are CAS01 through CAS19 Was your test case real? Are there really *'s in the file?

      Yes the test case was real. It was as accurate as I could quickly make it. I could provide actual content but I would have to be careful to remove patient data. As I had mentioned in my initial post the one-line code I provided did work as it successfully matched the "*" characters.

      You gave me some good suggestions and pointers, and I am trying a few things. I should get back to you all by Monday at the latest. I also think I found a good app to get a raw dump of the file contents.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161253]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found