cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
Find the perfect object, manage libraries, create custom objects
SOLVED!

GDL and Regex

ShaunTaylor
Booster

Hi,

 

How long has GDL had Regex functionality in Texts or Textblocks?

 

I don't think I ever noticed it before.

 

Is there a way to ask GDL to ignore the Regex language?

 

Cheers,

Shaun.


RegexAndGDL.png
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator

I have never heard of Regex, but try using a double \\ (or maybe it is triple\\\).

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

5 REPLIES 5
Solution
Barry Kelly
Moderator

I have never heard of Regex, but try using a double \\ (or maybe it is triple\\\).

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
ShaunTaylor
Booster

Yep looks like it is the double, I just googled backslash for Regex and I believe the convention is "\\". I think "\t" is used for the Text I/O Addon.

 

Cheers,

Shaun.

I think \t is tab space.

\n is carriage (line) return.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
ShaunTaylor
Booster

Yes, that is correct and is the convention for Regex (Regular Expressions). I thought I would ask about it. I wonder if GS has documented all the possible expressions that can be used in GDL?

Yep, page 12 of the GDL reference guide.

 

BarryKelly_0-1684903916167.png

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!