Python FME API
FME 2025.0 b25208
  • Introduction
  • Getting started
  • FME Objects API reference
    • Features
    • Geometries
    • Coordinate system and reprojection tools
    • Geometry tools
    • Raster tools
    • Licensing
    • Other utilities
      • fmeobjects.FMEDialog
      • fmeobjects.FMEFactoryPipeline
      • fmeobjects.FMERegex
        • fmeobjects.FMERegex.findall
        • fmeobjects.FMERegex.findlist
        • fmeobjects.FMERegex.match
        • fmeobjects.FMERegex.search
        • FMERegex
      • fmeobjects.FMESession
      • fmeobjects.FMESpatialIndex
      • fmeobjects.FMETemporaryFileManager
      • fmeobjects.FMETransformer
      • fmeobjects.FMEUniversalReader
      • fmeobjects.FMEUniversalWriter
      • fmeobjects.FMEWorkspaceRunner
      • Constants
    • FME log and error messages
    • Versioning and metadata constants
  • FME Web Services API reference
  • FME Pluginbuilder API reference
  • FME Python module reference
Python FME API
  • FME Objects API reference
  • Other utilities
  • fmeobjects.FMERegex
  • fmeobjects.FMERegex.search
  • View page source

fmeobjects.FMERegex.search

FMERegex.search(inputString)

Scan through string looking for the first location where this regular expression produces a match, and return a corresponding match object.

Parameters:

inputString (str) – Input string to match.

Return type:

tuple[str, int, int]

Returns:

A match tuple of the form (match, start, end), where match is the string segment matching the regular expression pattern, start is the start index of the string segment, and end is the end index of the string segment. None is returned if a match is not found.

Previous Next

© Copyright 1994 - 2025, Safe Software Inc.

Built with Sphinx using a theme provided by Read the Docs.