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 -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -