I am currently trying to figure out, how to find all columns of a table within an SQL statement using Regex in notepad++.
Lets take this query:
select
a.id,
a.id || a.name,
a.age,
b.id
From a,b
Now, I wat to retrieve all columns for a using regex - the problem the query itself is much larger and I do not want to have to go through the whole query.
The desired result is:
id
name
age
I already figured out that with
(?<=a\.)(\S+)
I match the desired strings, but Notepad++ still returns the whole lines and not only the words I need.
Can anyone help me here?