Questions? Feedback?powered byOlark live chat software
Bug 2833

Add support for Regular Expressions 12 June, 2019

Yuri Denshchik
07 June, 2019
Product: PowerBuilder Category: PowerScript
Version: 2017 R3 Publishing: Public
Status: Transferring Priority: P3
Classification: Enhancement Resolution:
Ken Guo 12 June, 2019
Hi Yuri,

Thanks for reporting this problem and for your valuable suggestion. 
We'll transfer this enhancement to our product team for consideration. 

Chris Pollach 12 June, 2019
Hi Yuri;

   I have written my own global "ReplaceAll" function that does that similar functionality you elude to in Java. However, you have a great point about it being supported right in the PB PowerScript language natively.

   I will now transfer this ticket over to the main Support/Engineering team for their review & recommendations on this enhancement request.

Regards ... Chris
Yuri Denshchik 11 June, 2019
Here is one line of code in Java that replaces Unix new lines with Windows :

How many lines of code PowerBuilder needs to get the same result?
Yuri Denshchik 11 June, 2019
The following regular expressions functionality would be highly useful: 
 - Grouping.
 - replace all based on Regular. Expresstions
Chris Pollach 07 June, 2019
Hi Yuri;

  PB has very powerful commands like the MATCH(), POS(), REVERSE(), etc functions or for another example the DW Object's Find() method.

  Can you be more specific? What do you need to have PB do?

Regards ... Chris
Yuri Denshchik 07 June, 2019
Please add support Regular Expressions. 
We need to be able to traverse the text and find matching string base on given pattern.
Database Type:
Database Version: