NMSL | A pure front-end abstract speech converter
kandi X-RAY | NMSL Summary
kandi X-RAY | NMSL Summary
A pure front-end abstract speech converter
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NMSL
NMSL Key Features
NMSL Examples and Code Snippets
Community Discussions
Trending Discussions on NMSL
QUESTION
I'm a college student working on a semester long project and I have hit a wall with my program. Before I go any further, do know that I looked through the similar threads on stack overflow and none of them seem to match my situation.
I have a string input generated from a pdf that contains abundant data from a table. Problem is, some of the table entries for the department column go from 1 row to 2 due to the formatting and I am unable to address it. For example,
PS 253 (handled fine by my algorithm)
MA
243HON (breaks everything)
I need to ultimately be able to put them on the same row and remove the " \n" after MA to send it along to the rest of the program. I attempted checking for \n one or two index places after the department code (MA) and changing the index from which I get 243HON, which did not work.
I have also tried String = string.replaceAll("MA \n", "MA ") as seen in the code. Removing the space between MA and \n does nothing. Here is the relevant part of my code. Thank you!
...ANSWER
Answered 2018-Sep-23 at 00:50I just fixed it. Through the find function, I had discovered that instead of \nMA \n, the format was \nMA \r\n. Changing that largely fixed the problem with a minor irrelevant bug which can be compensated for using an extra space. Thank you for your help nonetheless.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NMSL
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page