Skip to content
Advertisement

Tag: regex

Regex for splitting apparel sizes

I have the following input (only for example, real input contains much more crazy data) and want to split it by separators like / or , but keep pairs of values. This should be done only, if separator does not occur multiple times, so the result should look like: What I have so far is But this fails for 40/42/44/46/48

regex preg_replace php

I have random variable like: Strip @ 489.000 Strip 1 @ 489.000 Strip 2 @ 589.000 I need output will be: only number after ‘anything @ ‘ 489.000 so give me output: 489.000 489.000 589.000 hot to …

encoding language fails

PHP code below fails to retrieve correct characters when used : echo $html = file_get_contents(“http://www.tsetmc.com/tsev2/data/instinfofast.aspx?i=65883838195688438&c=34+”); the result is : …

Advertisement