Print Thread
Page 1 of 2 1 2
Replace -> Use with Regexp?
#11887 09/04/03 07:48 PM
Joined: Sep 2003
Posts: 4
Winnipeg, Canada
T
Taoism Offline OP
Member
OP Offline
Member
T
Joined: Sep 2003
Posts: 4
Winnipeg, Canada
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 [Linked Image]

Cheers,
Keith.

Re: Replace -> Use with Regexp?
#11888 09/04/03 07:58 PM
Joined: Aug 1999
Posts: 22,224
Member
Offline
Member
Joined: Aug 1999
Posts: 22,224
The replacement text currently does not support regular expressions. It is on the list of enhancement requests though.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Replace -> Use with Regexp?
#11889 09/04/03 08:10 PM
Joined: Sep 2003
Posts: 4
Winnipeg, Canada
T
Taoism Offline OP
Member
OP Offline
Member
T
Joined: Sep 2003
Posts: 4
Winnipeg, Canada
Ok then, now at least I know for sure [Linked Image]

Thanks for the timely reply!

Cheers,
Keith.

Re: Replace -> Use with Regexp?
#11890 10/25/06 05:30 PM
Joined: Oct 2006
Posts: 11
A
Member
Offline
Member
A
Joined: Oct 2006
Posts: 11
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?

Re: Replace -> Use with Regexp?
#11891 10/25/06 06:57 PM
Joined: Aug 1999
Posts: 22,224
Member
Offline
Member
Joined: Aug 1999
Posts: 22,224
Yes, this is still on the to-do list.


Marco Kalter
Allround Automations
Re: Replace -> Use with Regexp?
Marco Kalter #47140 05/29/13 08:46 AM
Joined: Oct 2006
Posts: 11
A
Member
Offline
Member
A
Joined: Oct 2006
Posts: 11
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.

Re: Replace -> Use with Regexp?
al666 #47141 05/29/13 09:37 AM
Joined: Aug 2011
Posts: 339
T
Member
Offline
Member
T
Joined: Aug 2011
Posts: 339
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). wink

Re: Replace -> Use with Regexp?
T-Gergely #59211 12/15/18 01:18 PM
Joined: Oct 2006
Posts: 11
A
Member
Offline
Member
A
Joined: Oct 2006
Posts: 11
And after 15 years of waiting, do we have any good news at last?

Re: Replace -> Use with Regexp?
al666 #59216 12/17/18 10:00 AM
Joined: Aug 1999
Posts: 22,224
Member
Offline
Member
Joined: Aug 1999
Posts: 22,224
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:
    [Linked Image from allroundautomations.com]


Marco Kalter
Allround Automations
Re: Replace -> Use with Regexp?
Marco Kalter #59320 01/03/19 02:23 PM
Joined: Sep 2004
Posts: 495
Dartmouth College, Hanover, NH...
Member
Offline
Member
Joined: Sep 2004
Posts: 495
Dartmouth College, Hanover, NH...
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.

[img:left]http://www.dropbox.com/s/cvhc6zcvqcfe6kf/PSD%20-%20V13%20Find-Replace%20Special%20Chars.png?dl=0[/img]

I'm running V13.0.0.1883

Page 1 of 2 1 2

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.051s Queries: 15 (0.024s) Memory: 2.5609 MB (Peak: 3.0420 MB) Data Comp: Off Server Time: 2024-05-26 14:30:51 UTC
Valid HTML 5 and Valid CSS