Simon
Simon

Reputation: 121

regex to match "number,URL"

I am not experienced with regex and lost whole day trying to match this:

343,SOME_URL 43555,SOME_URL

I need expression to match number and "," so I can cut it something like

343,SOME_URL to become only SOME_URL

Upvotes: 0

Views: 615

Answers (1)

Prince John Wesley
Prince John Wesley

Reputation: 63688

Use regex:

[0-9]+, or \d+,

and replace it with empty string ("").

Upvotes: 3

Related Questions