Print Thread
regular Expression in Search
#38990 11/04/10 10:42 AM
Joined: Nov 2002
Posts: 256
Erlangen, Bayern, Germany
TenGor Offline OP
Member
OP Offline
Member
Joined: Nov 2002
Posts: 256
Erlangen, Bayern, Germany
Hy,

i have the follwing code:

1 ALTER TABLE KEN123 ADD ...;
2 CREATE UNIQUE INDEX UKEN123_BEZ ON KEN123(BEZ)...;
3 CREATE INDEX IKEN123_FK ON KEN123(FK)...;
4 ... some other code ...

I want to find the lines 2, 3 with the regular expression
create *[a-zA-Z ]* INDEX
In my "normal" Editor (WinVi) this expression works, but PSD don't find anything? (wether the SearchBar nor the Find&Replace Dialog)

Could you please help me?


Thanks for helping & looking
TenGor
--
PL/SQL Dev.: 8.0.3.1510 / 8.0.4.1514
Oracle 9i, 10g, 11g
Windows 2000 SP4 / XP SP3 / Vista SP2 / Windows 7
Re: regular Expression in Search
TenGor #38994 11/04/10 11:22 AM
Joined: Aug 1999
Posts: 22,211
Member
Offline
Member
Joined: Aug 1999
Posts: 22,211
You need to use \s for a whitespace character:

CREATE[a-zA-Z\s]*INDEX


Marco Kalter
Allround Automations
Re: regular Expression in Search
Marco Kalter #39027 11/09/10 01:25 PM
Joined: Nov 2002
Posts: 256
Erlangen, Bayern, Germany
TenGor Offline OP
Member
OP Offline
Member
Joined: Nov 2002
Posts: 256
Erlangen, Bayern, Germany
Thanks.

It is a little be wired, because with your regular expression my "normal" Editor finds nothing ;-)

Is PSD using all the standard charclasses like
\d for a digit or \w for [a-zA-Z_0-9]?


Thanks for helping & looking
TenGor
--
PL/SQL Dev.: 8.0.3.1510 / 8.0.4.1514
Oracle 9i, 10g, 11g
Windows 2000 SP4 / XP SP3 / Vista SP2 / Windows 7
Re: regular Expression in Search
TenGor #39035 11/10/10 12:04 PM
Joined: Aug 1999
Posts: 22,211
Member
Offline
Member
Joined: Aug 1999
Posts: 22,211
Yes:

\t The tab character
\n The newline character
\r The return character
\f The formfeed character
\b The backspace character
\xNN The hex character NN
\0ooo The octal character ooo
\w A single character, one of [a-zA-Z0-9_]
\W Any single character not matching \w
\d A single character [0-9]
\D A single character not matching \d
\s A whitespace character [\t\r\n\f\b\ ]
\S A single character not matching \s


Marco Kalter
Allround Automations
Re: regular Expression in Search
Marco Kalter #43109 01/12/12 03:09 PM
Joined: Oct 2005
Posts: 587
Belgium
Member
Offline
Member
Joined: Oct 2005
Posts: 587
Belgium
Is this mentioned somewhere in the documentation?
If not, please add this info.

I just RTFM, but alas, I didn't found it.

Roeland

PS: PL/SQL Developer 9.0
Users Guide
April 2011

Re: regular Expression in Search
Roeland #43287 02/06/12 10:20 AM
Joined: Apr 2006
Posts: 77
F
Member
Offline
Member
F
Joined: Apr 2006
Posts: 77
A documentation of this feature is a must!!! RegEx are so powerful, but without any documentation they are nearly impossible to use :-(
There are too many nuances around, so it is very important to have some kind of documentation about what is supported and what not.
Especially, if one tries to a search/replace with a RegEx...


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.081s Queries: 14 (0.013s) Memory: 2.5177 MB (Peak: 3.0386 MB) Data Comp: Off Server Time: 2024-05-08 01:22:59 UTC
Valid HTML 5 and Valid CSS