cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

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.

1 ACCEPTED SOLUTION
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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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!