I would like to be able to create a function where I can pass in a STRING containing an SQL Query and return an ARRAY of all the words in the STRING. “Words” would be defined as any valid SQL keyword or valid SQL symbol, excluding numbers that are not part of the symbol, as well as all braces, brackets, and other characters (period, comma, semi-colon etc)
SELECT * FROM myTable WHERE x93=14/z
would return
“SELECT”,“FROM”,“myTABLE”,“WHERE”,“x93”,“z”
Here, Here!
I have no problem reverse engineering almost anything, I have no problem with mathematics, or almost any programming problem I have ever set my mind to. But RegEx? it just refuses to light that bulb for me.
[quote=335878:@Kem Tekinay]Write a regular expression editor. It’s simple after that.
(Don’t really do that.)[/quote]
Kem… that really isn’t as silly an idea as it sounds…
I have learned a lot about interpeters and compilers by actually attempting (with limited success) to write them