regex - Check If first character is "+" -


how can detect string start "+"

i tried
^\s*?\+.*$
no help.

p.s: have 1 line alltime.

you don't need \s*?, have use:

^\+ or... ^[+] 

in case want check complete string, can use:

^\+.*$ 

working demo


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -