I am working on PowerBuilder code that way too many people worked on ahead of me. There are numerous coding styles at play here which is making searching very difficult. For example, I am trying to find all occurences of assignments to a particular object but in some cases the equal sign is separated by a single space on either side and other cases a TAB or multiple tabs to the left or to the right or both. I am using a text editor to evaluate the code and performthe parsing and searching since PowerBuilder sucks.
I am not sure if the TAB formatting is going to show up in my examples below due to html space formatting, so i added text comments to specify
il_row = IDw_Master_Control.GetSelectedRow(0) // single space on each side of equal sign
ldb_auth_nbr = IDw_Master_Control // this one has a TAB between left variable and equal sign
il_row = IDw_Master_Control // this one has a TAB on each side of the equal sign
il_row = IDw_Master_Control. // this one has a TAB tto the right of the equal sign
1) I want a Regular Expression to return all of these instances.
2) The 2nd part is to EXCLUDE any lines meeting the above criteria if the word IF is detected on the same line.
I appreciate any assistance with this.