Follow

Trying to find a regex for a problem, my first attempt, furious it isn't working:

^[^!#<>=':;&/\.\-a-z0-9]*([!#<>=':;&/\.\-a-z0-9]*).*$

*takes a walk*

^\s*(\S.*\S)\s*$

That works.

Sign in to participate in the conversation
Gamedev Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!