• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Question on Regular Expressions

clamum

Lifer
I have the function below to match currency in PHP. The leading dollar sign is required, followed by an amount with or without commas, if they are used, they should be used properly.

I am sending it $5,000 as a test and it does not match. I cannot figure out why not.
 
Back
Top