# regex icon

Regex. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/regex

- Category: Development
- Use it for: regex, regular expression, regexp
- Tags: regex, regexp, regular-expression, pattern, wildcard, asterisk, match, find, replace, developer
- Component name: RegexIcon
- Added: 2026-10-15

## Alternatives

- `asterisk`: a simple * wildcard rather than a full pattern (wildcard)

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/regex.svg · PNG https://gentleface.com/png/line-round/16/regex.png · https://gentleface.com/png/line-round/32/regex.png · https://gentleface.com/png/line-round/48/regex.png
- line-soft: https://gentleface.com/svg/line-soft/16/regex.svg · PNG https://gentleface.com/png/line-soft/16/regex.png · https://gentleface.com/png/line-soft/32/regex.png · https://gentleface.com/png/line-soft/48/regex.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/regex.svg · PNG https://gentleface.com/png/line-sharp/16/regex.png · https://gentleface.com/png/line-sharp/32/regex.png · https://gentleface.com/png/line-sharp/48/regex.png
- solid-round: https://gentleface.com/svg/solid-round/16/regex.svg · PNG https://gentleface.com/png/solid-round/16/regex.png · https://gentleface.com/png/solid-round/32/regex.png · https://gentleface.com/png/solid-round/48/regex.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/regex.svg · PNG https://gentleface.com/png/solid-soft/16/regex.png · https://gentleface.com/png/solid-soft/32/regex.png · https://gentleface.com/png/solid-soft/48/regex.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/regex.svg · PNG https://gentleface.com/png/solid-sharp/16/regex.png · https://gentleface.com/png/solid-sharp/32/regex.png · https://gentleface.com/png/solid-sharp/48/regex.png

The SVG of every style: https://gentleface.com/icons/regex.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z"/></svg>
```

### React

```tsx
// Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex
import type { SVGProps } from 'react';

export function RegexIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/regex.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex. Takes the text color. */
.icon-regex {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#regex"/></svg>
```

### SwiftUI

```swift
// Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex
import SwiftUI

struct RegexIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 6.724, y: 7.947))
        p.addCurve(to: CGPoint(x: 6.342, y: 7.974), control1: CGPoint(x: 6.6, y: 8.009), control2: CGPoint(x: 6.473, y: 8.018))
        p.addCurve(to: CGPoint(x: 6.053, y: 7.724), control1: CGPoint(x: 6.211, y: 7.931), control2: CGPoint(x: 6.115, y: 7.847))
        p.addCurve(to: CGPoint(x: 6.026, y: 7.342), control1: CGPoint(x: 5.991, y: 7.6), control2: CGPoint(x: 5.982, y: 7.473))
        p.addCurve(to: CGPoint(x: 6.276, y: 7.053), control1: CGPoint(x: 6.069, y: 7.211), control2: CGPoint(x: 6.153, y: 7.115))
        p.addLine(to: CGPoint(x: 9.382, y: 5.5))
        p.addLine(to: CGPoint(x: 6.276, y: 3.947))
        p.addCurve(to: CGPoint(x: 6.026, y: 3.658), control1: CGPoint(x: 6.153, y: 3.885), control2: CGPoint(x: 6.069, y: 3.789))
        p.addCurve(to: CGPoint(x: 6.053, y: 3.276), control1: CGPoint(x: 5.982, y: 3.527), control2: CGPoint(x: 5.991, y: 3.4))
        p.addCurve(to: CGPoint(x: 6.342, y: 3.026), control1: CGPoint(x: 6.115, y: 3.153), control2: CGPoint(x: 6.211, y: 3.069))
        p.addCurve(to: CGPoint(x: 6.724, y: 3.053), control1: CGPoint(x: 6.473, y: 2.982), control2: CGPoint(x: 6.6, y: 2.991))
        p.addLine(to: CGPoint(x: 10, y: 4.691))
        p.addLine(to: CGPoint(x: 10, y: 1.5))
        p.addCurve(to: CGPoint(x: 10.144, y: 1.144), control1: CGPoint(x: 10, y: 1.359), control2: CGPoint(x: 10.048, y: 1.241))
        p.addCurve(to: CGPoint(x: 10.5, y: 1), control1: CGPoint(x: 10.241, y: 1.048), control2: CGPoint(x: 10.359, y: 1))
        p.addCurve(to: CGPoint(x: 10.856, y: 1.144), control1: CGPoint(x: 10.641, y: 1), control2: CGPoint(x: 10.759, y: 1.048))
        p.addCurve(to: CGPoint(x: 11, y: 1.5), control1: CGPoint(x: 10.952, y: 1.241), control2: CGPoint(x: 11, y: 1.359))
        p.addLine(to: CGPoint(x: 11, y: 4.691))
        p.addLine(to: CGPoint(x: 14.276, y: 3.053))
        p.addCurve(to: CGPoint(x: 14.659, y: 3.023), control1: CGPoint(x: 14.402, y: 2.99), control2: CGPoint(x: 14.53, y: 2.98))
        p.addCurve(to: CGPoint(x: 14.947, y: 3.276), control1: CGPoint(x: 14.788, y: 3.066), control2: CGPoint(x: 14.884, y: 3.15))
        p.addCurve(to: CGPoint(x: 14.977, y: 3.659), control1: CGPoint(x: 15.01, y: 3.402), control2: CGPoint(x: 15.02, y: 3.53))
        p.addCurve(to: CGPoint(x: 14.724, y: 3.947), control1: CGPoint(x: 14.934, y: 3.788), control2: CGPoint(x: 14.85, y: 3.884))
        p.addLine(to: CGPoint(x: 11.618, y: 5.5))
        p.addLine(to: CGPoint(x: 14.724, y: 7.053))
        p.addCurve(to: CGPoint(x: 14.974, y: 7.342), control1: CGPoint(x: 14.847, y: 7.115), control2: CGPoint(x: 14.931, y: 7.211))
        p.addCurve(to: CGPoint(x: 14.947, y: 7.724), control1: CGPoint(x: 15.018, y: 7.473), control2: CGPoint(x: 15.009, y: 7.6))
        p.addCurve(to: CGPoint(x: 14.659, y: 7.977), control1: CGPoint(x: 14.884, y: 7.85), control2: CGPoint(x: 14.788, y: 7.934))
        p.addCurve(to: CGPoint(x: 14.276, y: 7.947), control1: CGPoint(x: 14.53, y: 8.02), control2: CGPoint(x: 14.402, y: 8.01))
        p.addLine(to: CGPoint(x: 11, y: 6.309))
        p.addLine(to: CGPoint(x: 11, y: 9.5))
        p.addCurve(to: CGPoint(x: 10.856, y: 9.856), control1: CGPoint(x: 11, y: 9.641), control2: CGPoint(x: 10.952, y: 9.759))
        p.addCurve(to: CGPoint(x: 10.5, y: 10), control1: CGPoint(x: 10.759, y: 9.952), control2: CGPoint(x: 10.641, y: 10))
        p.addCurve(to: CGPoint(x: 10.144, y: 9.856), control1: CGPoint(x: 10.359, y: 10), control2: CGPoint(x: 10.241, y: 9.952))
        p.addCurve(to: CGPoint(x: 10, y: 9.5), control1: CGPoint(x: 10.048, y: 9.759), control2: CGPoint(x: 10, y: 9.641))
        p.addLine(to: CGPoint(x: 10, y: 6.309))
        p.addLine(to: CGPoint(x: 6.724, y: 7.947))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.439, y: 11.439))
        p.addCurve(to: CGPoint(x: 3.5, y: 11), control1: CGPoint(x: 2.732, y: 11.146), control2: CGPoint(x: 3.086, y: 11))
        p.addCurve(to: CGPoint(x: 4.561, y: 11.439), control1: CGPoint(x: 3.914, y: 11), control2: CGPoint(x: 4.268, y: 11.146))
        p.addCurve(to: CGPoint(x: 5, y: 12.5), control1: CGPoint(x: 4.854, y: 11.732), control2: CGPoint(x: 5, y: 12.086))
        p.addCurve(to: CGPoint(x: 4.561, y: 13.561), control1: CGPoint(x: 5, y: 12.914), control2: CGPoint(x: 4.854, y: 13.268))
        p.addCurve(to: CGPoint(x: 3.5, y: 14), control1: CGPoint(x: 4.268, y: 13.854), control2: CGPoint(x: 3.914, y: 14))
        p.addCurve(to: CGPoint(x: 2.439, y: 13.561), control1: CGPoint(x: 3.086, y: 14), control2: CGPoint(x: 2.732, y: 13.854))
        p.addCurve(to: CGPoint(x: 2, y: 12.5), control1: CGPoint(x: 2.146, y: 13.268), control2: CGPoint(x: 2, y: 12.914))
        p.addCurve(to: CGPoint(x: 2.439, y: 11.439), control1: CGPoint(x: 2, y: 12.086), control2: CGPoint(x: 2.146, y: 11.732))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// RegexIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val RegexIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "regex", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(RegexIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_regex.xml · Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M6.724 7.947C6.6 8.009 6.473 8.018 6.342 7.974C6.211 7.931 6.115 7.847 6.053 7.724C5.991 7.6 5.982 7.473 6.026 7.342C6.069 7.211 6.153 7.115 6.276 7.053L9.382 5.5L6.276 3.947C6.153 3.885 6.069 3.789 6.026 3.658C5.982 3.527 5.991 3.4 6.053 3.276C6.115 3.153 6.211 3.069 6.342 3.026C6.473 2.982 6.6 2.991 6.724 3.053L10 4.691L10 1.5C10 1.359 10.048 1.241 10.144 1.144C10.241 1.048 10.359 1 10.5 1C10.641 1 10.759 1.048 10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 4.691L14.276 3.053C14.402 2.99 14.53 2.98 14.659 3.023C14.788 3.066 14.884 3.15 14.947 3.276C15.01 3.402 15.02 3.53 14.977 3.659C14.934 3.788 14.85 3.884 14.724 3.947L11.618 5.5L14.724 7.053C14.847 7.115 14.931 7.211 14.974 7.342C15.018 7.473 15.009 7.6 14.947 7.724C14.884 7.85 14.788 7.934 14.659 7.977C14.53 8.02 14.402 8.01 14.276 7.947L11 6.309L11 9.5C11 9.641 10.952 9.759 10.856 9.856C10.759 9.952 10.641 10 10.5 10C10.359 10 10.241 9.952 10.144 9.856C10.048 9.759 10 9.641 10 9.5L10 6.309L6.724 7.947ZM2.439 11.439C2.732 11.146 3.086 11 3.5 11C3.914 11 4.268 11.146 4.561 11.439C4.854 11.732 5 12.086 5 12.5C5 12.914 4.854 13.268 4.561 13.561C4.268 13.854 3.914 14 3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "regex" (line-round), MIT. https://gentleface.com/icons/regex
import 'package:flutter/widgets.dart';

class RegexIcon extends StatelessWidget {
  const RegexIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _RegexIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _RegexIconPainter extends CustomPainter {
  _RegexIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(6.724, 7.947)
      ..cubicTo(6.6, 8.009, 6.473, 8.018, 6.342, 7.974)
      ..cubicTo(6.211, 7.931, 6.115, 7.847, 6.053, 7.724)
      ..cubicTo(5.991, 7.6, 5.982, 7.473, 6.026, 7.342)
      ..cubicTo(6.069, 7.211, 6.153, 7.115, 6.276, 7.053)
      ..lineTo(9.382, 5.5)
      ..lineTo(6.276, 3.947)
      ..cubicTo(6.153, 3.885, 6.069, 3.789, 6.026, 3.658)
      ..cubicTo(5.982, 3.527, 5.991, 3.4, 6.053, 3.276)
      ..cubicTo(6.115, 3.153, 6.211, 3.069, 6.342, 3.026)
      ..cubicTo(6.473, 2.982, 6.6, 2.991, 6.724, 3.053)
      ..lineTo(10, 4.691)
      ..lineTo(10, 1.5)
      ..cubicTo(10, 1.359, 10.048, 1.241, 10.144, 1.144)
      ..cubicTo(10.241, 1.048, 10.359, 1, 10.5, 1)
      ..cubicTo(10.641, 1, 10.759, 1.048, 10.856, 1.144)
      ..cubicTo(10.952, 1.241, 11, 1.359, 11, 1.5)
      ..lineTo(11, 4.691)
      ..lineTo(14.276, 3.053)
      ..cubicTo(14.402, 2.99, 14.53, 2.98, 14.659, 3.023)
      ..cubicTo(14.788, 3.066, 14.884, 3.15, 14.947, 3.276)
      ..cubicTo(15.01, 3.402, 15.02, 3.53, 14.977, 3.659)
      ..cubicTo(14.934, 3.788, 14.85, 3.884, 14.724, 3.947)
      ..lineTo(11.618, 5.5)
      ..lineTo(14.724, 7.053)
      ..cubicTo(14.847, 7.115, 14.931, 7.211, 14.974, 7.342)
      ..cubicTo(15.018, 7.473, 15.009, 7.6, 14.947, 7.724)
      ..cubicTo(14.884, 7.85, 14.788, 7.934, 14.659, 7.977)
      ..cubicTo(14.53, 8.02, 14.402, 8.01, 14.276, 7.947)
      ..lineTo(11, 6.309)
      ..lineTo(11, 9.5)
      ..cubicTo(11, 9.641, 10.952, 9.759, 10.856, 9.856)
      ..cubicTo(10.759, 9.952, 10.641, 10, 10.5, 10)
      ..cubicTo(10.359, 10, 10.241, 9.952, 10.144, 9.856)
      ..cubicTo(10.048, 9.759, 10, 9.641, 10, 9.5)
      ..lineTo(10, 6.309)
      ..lineTo(6.724, 7.947)
      ..close()
      ..moveTo(2.439, 11.439)
      ..cubicTo(2.732, 11.146, 3.086, 11, 3.5, 11)
      ..cubicTo(3.914, 11, 4.268, 11.146, 4.561, 11.439)
      ..cubicTo(4.854, 11.732, 5, 12.086, 5, 12.5)
      ..cubicTo(5, 12.914, 4.854, 13.268, 4.561, 13.561)
      ..cubicTo(4.268, 13.854, 3.914, 14, 3.5, 14)
      ..cubicTo(3.086, 14, 2.732, 13.854, 2.439, 13.561)
      ..cubicTo(2.146, 13.268, 2, 12.914, 2, 12.5)
      ..cubicTo(2, 12.086, 2.146, 11.732, 2.439, 11.439)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_RegexIconPainter old) => old.color != color;
}
```
