Replace -> Use with Regexp?

Taoism

Member
Does anyone know the format of the match variables for regular expressions in this editor?

I would like to do a "replace all" using the following regular expression:

Find:
:NEW\.([a-zA-z]+)

Replace:
p_\1 IN table_name.\1%TYPE

However, \1 gets literally substituted. I have tried %1, and $1 as well. Is it even possible to use regular expressions in this editor in this fashion? For now, I will do the replace in UltraEdit, but it would be good to know the replacement syntax if it works
smile.gif


Cheers,
Keith.
 
The replacement text currently does not support regular expressions. It is on the list of enhancement requests though.

------------------
Marco Kalter
Allround Automations
 
3 years past...
v7.0.2

Tried $1 \1 %1 in the "Replace" field - still doesn't work.

It's very inconvenient to use external editors for such simply operations.

Is this feature still considered for implementing?
 
OMG! Almost 10 years have passed, and the PLANNED feature is still not implemented?

Guys, you really need to think seriously about redesigning your development process.
 
You're lucky. Fixing xmltype handling is not even planned. BTW, planning usually takes more than writing one line on that ever growing wish list (yeah, mine is 25KiB, too). ;)
 
Version 13 will have some enhancements for regular expressions:
  • Support had been added for special characters (e.g. \t) and subexpressions (e.g. $1) in the replacement text when using regular expressions.
  • There is now a separate recall history for regular expressions.
  • There is now a syntax selection list for the find text and replacement text when using regular expressions:
    pls130regexp.png
 
Marco,

Since you mentioned this new V13 feature, I decided to try it out for the first time. I think I found a minor bug in the Special Characters menu? The option "Tab character" is listed twice in a row.

I'm hoping you can see this in the attached screen shot.

PSD%20-%20V13%20Find-Replace%20Special%20Chars.png


I'm running V13.0.0.1883
 
Back
Top