Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

%
curl -X POST -H "Expect:" -H "Content-Type: application/json" -d ' { "regex":"\\w+", "testString":"bird is the word", "flags":"g", "delimiter":"@", "flavor":"pcre", "unitTests":[ { "description":"testing ok festering not ok", "criteria":"DOES_NOT_MATCH", "target":"REGEX", "testString":"festering" }, { "description":"word should match", "criteria":"DOES_MATCH", "testString":"awesomelicious", "target":"REGEX" }, { "description":"match starts with", "criteria":"STARTS_WITH", "testString":"bird", "target":"0", "compareString":"bird" }, { "description":"match ends with", "criteria":"ENDS_WITH", "testString":"poop", "target":"0", "compareString":"poop" }, { "description":"there should be a word in here somewhere", "criteria":"CONTAINS", "testString":"word", "target":"0", "compareString":"word" }, { "description":"bird is the word, for real", "criteria":"EQUALS", "testString":"bird is the word", "target":"0", "compareString":"bird is the word" }, { "description":"no result", "criteria":"IS_NULL", "testString":"fishing", "target":"0", "compareString":null } ] }' "https://regex101.com/api/regex"
%
gm

Description

// SPDX-License-Identifier: LGPL-3.0-only // Created By: Art Blocks Inc.

pragma solidity ^0.8.0;

/**

  • @title ISharedMinterRequired

  • @notice This interface contains the minimum required interface for a shared

  • minter contract. All custom, one-off minter contracts should implement this

  • interface. / interface ISharedMinterRequired { /*

    • @notice Returns the minter's type, used by the minter filter for metadata
    • purposes.
    • @return The minter type. */ function minterType() external view returns (string memory);

    /**

    • @notice Returns the minter's associated shared minter filter address.
    • @dev used by subgraph indexing service for entity relation purposes.
    • @return The minter filter address. */ function minterFilterAddress() external returns (address); }
Submitted by anonymous - a month ago