Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on November 14, 2021, 11:30:30 pm



Title: Ask Reuben 101 - Back Quote
Post by: Reuben B. on November 14, 2021, 11:30:30 pm
Regular expressions were added in Genero Enterprise 4.00. No longer do you need to use IMPORT JAVA in order to code regular expressions.  You can use the new methods introduced in 4.00 as part of the util.Regexp class as well as the additional methods added to the STRING data-type.
 
During the Early Access Program, something became very apparent. If you copied a regular expression directly from a website such as Stack Overflow you would not get the expected matches. This was because our existing text literals and regular expression pattern matchers have different uses for the back slash character.
 
The solution was a new text literal delimiter using the back quote character.  If this was used, back slash did not have the special meaning for text literals, and so it could be used for regular expression pattern matching.
 
Read more at https://4js.com/ask-reuben/ig-101/