GDL and Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-05-24 05:52 AM
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.
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-05-24 06:38 AM
I have never heard of Regex, but try using a double \\ (or maybe it is triple\\\).
Barry.
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-05-24 06:38 AM
I have never heard of Regex, but try using a double \\ (or maybe it is triple\\\).
Barry.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-05-24 06:42 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-05-24 06:45 AM
I think \t is tab space.
\n is carriage (line) return.
Barry.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-05-24 06:49 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-05-24 06:53 AM - edited ‎2023-05-24 06:53 AM
Yep, page 12 of the GDL reference guide.
Barry.
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