0

I have this URL:

http://www.xxxxxxxx.it/stagione.shtml#giornata_107

I tried to get number of giornata with regex like this:

<!--#set var="giornata" value="$QUERY_STRING = /\#giornata\_([0-9])/"-->

but I don't know the right syntax

Thanks

roybatty
  • 191
  • 3
  • 13

1 Answers1

1

You need to match one or more digits, using [0-9]+ instead of just [0-9] which matches a single one:

<!--#set var="giornata" value="$QUERY_STRING = /\#giornata\_([0-9]+)/"-->
João Silva
  • 89,303
  • 29
  • 152
  • 158