i want to display only elements of array tht start with a number can i do that using egrep"

Recommended Answers

Start your regex with ^\d

Jump to Post

All 3 Replies

Start your regex with ^\d

thank you for replay
but i could not understand could you explain more???

What did you not understand? The regex is as follows:

^ start of string
\d a digit
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.