Regular expression 'substitution variables'?
Hello,
A two part question:
The first is a hopefully simple yes/no question: In KDevelop's Replace dialog, there is a possibility to use a regular expression as a match. This is great. However - having some experience with Perl's s/// operator, I was wondering if the feature I think is called "substitution variables" are possible in the KDevelop RegEx ?
To describe it in more detail : I was playing around with some pointer-
void (*my_function)
...so I used the RegEx matching to strip away first the " void (*" part and then a second sweep to take away all ")(const long, object*)" junk afterwards in order to get a nice clean list of the structure's pointers.
In Perl I could have done all that with one sweep - with something like this (a bit complex I know, but this is what I was trying to do...): s/^\s+[
Or split in its two parts:
Search for: ^\s+[A-
Replace with: $1
The important bit is the middle part ...([A-
Ok, that was question 1.
Question 2: if this is not a feature of KDevelop - where can I submit such a suggestion ?
Cheers!
/ Daniel
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu kdevelop Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Daniel
- Solved:
- Last query:
- Last reply: