I’ve been working on a program that needs to parse a html file for form data. So when I was deciding what method to use, a few popped right into my mind. The first being a character by character search through the string. Parsing through the data and flagging sections that fit the signature of what was being searched for. The second would be automating that by using the built-in string functions to split up the string and drill down until the needed data was extracted. The third, and one I chose to use, was with regular expressions. This in my mind is the most “poetic” method of the three, which would allow me to make the a robust and reliable function. While I’ve used regular expressions a lot throughout the years. I never seem to remember enough to construct a decent statement. I had recently bought a pocket reference (link below), so I used that to get a statement constructed. It had a total of about 6 pages for C#, but I pretty much got what I needed from it. An...
Computers, programming, software development, AI, design, and more!