# sequra/3.0.6/src/Services/Regex/interface-regex.php

seQura, version 3.0.6. 26 lines.

- Page: https://pluginprobe.com/plugins/sequra/3.0.6/code/src/Services/Regex/interface-regex.php
- Raw: https://pluginprobe.com/plugins/sequra/3.0.6/raw/src/Services/Regex/interface-regex.php
- Modified: 2024-10-29T15:19:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sequra/3.0.6/code/src/Services/Regex/interface-regex.php#L10-L20`.

```php
<?php
/**
 * RegEx service interface
 *
 * @package    SeQura/WC
 * @subpackage SeQura/WC/Services
 */

namespace SeQura\WC\Services\Regex;

/**
 * Define methods to get regular expressions to validate data
 */
interface Interface_Regex {

	/**
	 * Get regular expression to validate an IPv4 or IPv6 address
	 */
	public function ip( bool $include_slashes = true ): string;

	/**
	 * Get regular expression to validate a date or duration following ISO 8601
	 */
	public function date_or_duration( bool $include_slashes = true ): string;
}

```
