CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
string match


New User

Nov 9, 2013, 2:04 PM

Post #1 of 2 (1538 views)
string match Can't Post

Hello !

I have a string like this

<option value ="12">גבעולים <option value ="44">גבעון החדשה <option value ="11">גבעת אבני <option value ="53">גבעת אלה <option value ="10">גבעת וושינגטון <option value ="44">גבעת זאב <option value ="32">גבעת חביבה <option value ="14">גבעת חיים איחוד <option value ="14">גבעת חיים מאוחד <option value ="43">גבעת חנניה <option value ="36">גבעת יואב <option value ="44">גבעת יערים <option value ="13">גבעת כ?ח <option value ="32">גבעת ניל?י <option value ="27">גבעת ניר <option value ="27">גבעת עוז <option value ="23">גבעת שמש <option value ="10">גבעתי <option value ="8">גברעם <option value ="53">גבת <option value ="3">גדות <option value ="27">

i want to replace the number with the text after

for example

<option value ="12">גבעולים

wil be

<option value ="גבעולים ">גבעולים

i tried this

$new =~ s/ $entire_file[0] =~ m|option value ="(.*?)">|/$entire_file[0] =~ m|option value ="\d{1,2}">(.*?)<|/g;

did not work any idea?


Veteran / Moderator

Nov 9, 2013, 4:11 PM

Post #2 of 2 (1535 views)
Re: [uda] string match [In reply to] Can't Post


I gave you an answer on your cross post on the dev shed forum.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives