Not able to search a string if it is commented

Posted by nehaakg on 07-Feb-2019 08:41

I am trying to search a commented text (/* somthing */) but unable to find it in the program. If i remove the slash astrik ( /* */ ) then i am able to find it. I would like to know if it is a bug or?

All Replies

Posted by richardz on 07-Feb-2019 08:55

Hi.

Do you mean searching through the text in de PDS?

There is a checkbox '' Regular expressions' in de Find/Replace dialog.

If checked, i can not search on /* test */

If not checked, I can search on /* text */

Hope this will help you,

Kind regards,

Richard Zwart

Posted by nehaakg on 07-Feb-2019 10:50

I mean searching through the text on procedure editor. There is no option to check for regular expression while find.

Posted by Matt Gilarde on 07-Feb-2019 12:26

I tried it in the 32-bit and 64-bit Procedure Editor and it seems to work. Can you attach the file and show exactly what you're searching for which can't be found?

Posted by nehaakg on 07-Feb-2019 13:01

for example if i have a file (attached) and i am searching below text 

/*this is for test*/

It says not found. but if i search like below

this is for test

I found it

I hope it is clear.

The file is having only text is /*this is for test*/

Posted by Matt Gilarde on 07-Feb-2019 13:09

I can find /*this is for test*/ in that file.

What version of OpenEdge are you using?

What platform are you using?

32-bit or 64-bit?

What are -cpinternal and -cpstream set to?

Posted by nehaakg on 08-Feb-2019 09:53

OE version 11.5

64-bit platform

-cpinternal set to utf-8

-cpstream set to iso8859-1

Posted by Matt Gilarde on 08-Feb-2019 12:15

I still can't reproduce it. There must be some other factor involved. I'll poke around to see if I can figure out what it could be.

This thread is closed