1

Sorry for these silly Question but i couldn't find a clue on my own

I am a beginner at regexp language and I want someone help to find and replace the following value in content-range Http=Header

Content-Range: bytes x-xxxxx/xxxx

i want to find the xxxx value and replace it with yyyyy so the value will be

x-xxxxxx/yyyy

for example

0-423423/7777777 to be 0-423423/9999999

Can anyone help me in it

thanks in advance

1 Answer 1

2

since you didn't provide details on implementing language, here are the regex and the replacement in PCRE-style

Regex

(\d+-\d+)/\d+

Replacement

$1/1234512345

where 1234512345 is your replacement-value (the number after the slash you want to change)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.