tensorflow:: ops:: RegexFullMatch

#include <string_ops.h>

Check if the input matches the regex pattern.

Summary

The input is a string tensor of any shape. The pattern is a scalar string tensor which is applied to every element of the input tensor. The boolean values (True or False) of the output tensor indicate if the input matches the regex pattern provided.

The pattern follows the re2 syntax ( https://github.com/google/re2/wiki/Syntax )

Examples:

tf.strings.regex_full_match(["TF lib", "lib TF"], ".*lib$") tf.strings.regex_full_match(["TF lib", "lib TF"], ".*TF$")

Args:

  • scope: A Scope object
  • input: A string tensor of the text to be processed.
  • pattern: A scalar string tensor containing the regular expression to match the input.

Returns:

  • Output : A bool tensor with the same shape as input .

Constructors and Destructors

RegexFullMatch (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input pattern)

Public attributes

operation
output

Public functions

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

RegexFullMatch

 RegexFullMatch(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input pattern
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const