smarty regex replace - remove unnecessary chars -


i have change string "100,23 zł" , "29,23 $" to:

"100,23" "29,23"

so want remove characters instead of numbers , ','

you can use negated class containing digits , comma:

[^0-9,]+ 

see demo on regex101.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

javascript - addthis share facebook and google+ url -

java - Simulate the tossing of a coin three times and print out the percentage of cases in which one gets three tails -