RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Format String (Flowgraph Node)Match String (Flowgraph Node)Concat (Flowgraph Node)SubString (Flowgraph Node)

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsflowgraphnodesstring

Match String (Flowgraph Node)

- **Node Name:** `Match String`

Overview

  • Node Name: Match String
  • Category: simple
  • File: extensions/flowgraph/nodes/string/match.lua

Matches a string against a Lua pattern and outputs the first match.

Pin Schema

Input Pins

PinTypeDescription
valuestringThe string to test against the pattern

Output Pins

PinTypeDescription
valuestringThe result of the pattern match

Data Properties

PropertyTypeDefaultDescription
patternstring"%d"Lua pattern to match against

Behavior

  • init() - Sets default pattern to "%d".
  • work() - Calls string.match(input, pattern) and outputs the result.
  • drawMiddle() - Displays the current pattern in the node body.

How It Works

  1. Set the pattern data property to a Lua pattern string.
  2. Connect an input string to the value pin.
  3. The output value pin receives the first match from string.match.
-- Example: pattern = "%d+"
-- Input: "Score: 42 points"
-- Output: "42"

-- Example: pattern = "(%a+)"
-- Input: "hello world"
-- Output: "hello"

Notes

  • Uses Lua patterns (not regex). See Lua 5.1 pattern reference for syntax.
  • Returns only the first match. For multiple captures, consider custom Lua.

Key Dependencies

  • Lua built-in string.match

See Also

  • Format String (Flowgraph Node) - Related reference
  • Concat (Flowgraph Node) - Related reference
  • SubString (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Format String (Flowgraph Node)

- **Node Name:** `Format String`

Concat (Flowgraph Node)

- **Node Name:** `Concat`

On this page

OverviewPin SchemaInput PinsOutput PinsData PropertiesBehaviorHow It WorksNotesKey DependenciesSee Also