Regular expression - making a character optional

20 character text here

Try using /^8?abc/. The ^ marks the start of a string.

1 Like

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.

1 Like