Regular Expressions in Conversion Files
Tips & Tricks
RFEM and RSTAB provide numerous interfaces with other programs for data exchange. In the respective programs, different names are often used for the same materials and cross‑sections. Therefore, it is necessary to convert the material and cross‑section names in order to be recognized by the program after the data exchange.
The conversion can be done by using a conversion file. In addition to the description in the third-party application and the corresponding description in RFEM/RSTAB as described in the article Simplified Import and Export via Conversion File, you can also use regular expressions for the conversion. One conversion at a time must be defined for the import (to RFEM/RSTAB) and for the export (from RFEM/RSTAB). The following syntax must be used.
Format for import:
REGEX_IMP: Pattern material or cross-section; Pattern substitution material or cross-section
Format for export:
REGEX_EXP: Pattern material or cross-section; Pattern substitution material or cross-section
The following conversion should be performed:
Pi(B) 500/20/15/300/400/100/12/4/3 <--> ZHWS400*500*15*20*100*12*300
REGEX_IMP:^ZHWS(\d+)\*(\d+)\*(\d+)\*(\d+)\*(\d+)\*(\d+)\*(\d+); Pi(B) $2/$4/$3/$7/$1/$5/$6/0/0
- Regular Expression Language - Quick Reference
- Substitutions in Regular Expressions
- 3D Structural & BIM Software
Do you have questions or need advice?
Contact our free e-mail, chat, or forum support or find various suggested solutions and useful tips on our FAQ page.
Structural engineering software for finite element analysis (FEA) of planar and spatial structural systems consisting of plates, walls, shells, members (beams), solids and contact elements
The structural engineering software for design of frame, beam and truss structures, performing linear and nonlinear calculations of internal forces, deformations, and support reactions