smarty regex replace - remove unnecessary chars
I have to change string like "100,23 zł" and "29,23 $" to: "100,23" "29,23" So i want to remove all characters instead of numbers and ','
You can use a negated class containing only digits and comma: [^0-9,]+ See demo on regex101.
I don't know how to do it with your language but it would be simple enough, just match anything that isn't a number or a comma and replace it with an empty string. So match any non-digit character or a comma with: (\D|,)* or this [^0-9,]* Replace with empty string: "" or '' depending on your language string delimiters .
you can replace this /\s\D+/ with empty string and this will do. This is applicable when you do not have any other content in the file. If you do have other contents too then try this /\d+\s\D+/
How to detect a string which does not include " using flex?
Extract certain values from string in .txt files with PowerShell
Apache 301 Redirect Add language prefix if not present
Regex, match characters and doesn't contain more than one _ followed by another _
Regex ignore word
Regex not valid in google sheets error?
extract substring using regex in shell script
Eclipse Add text to first line of all files
Renaming files by using a prefix from text file
Python regex to find words, which also excludes particular words
Regex - exclude search results
Update a line in the AD info field
Sed Match Number followed by string and return Number
Perl matching string with mix of alphanumeric,_ and any number of square braces [closed]
Bash: extract the scheme and host part from a URL string
RexExp find a word within a list of words that are within a parenthesis